SkPaint FilterQuality alternative

11 views
Skip to first unread message

Clark Kent

unread,
Sep 15, 2022, 10:48:34 PM (9 days ago) Sep 15
to skia-discuss
what can we use as an alternative to the removed SkPaint.FilterQuality api ?

eg

Save();
float scale = dstDensity / (float)srcDensity;
Translate(left, top);
Scale(scale, scale);

SKPaint filteredPaint = paint == null ? new SKPaint() : paint;
filteredPaint.FilterQuality = SKFilterQuality.Low;

DrawNinePatch(bitmap, nativeChunk, 0, 0, (right - left) / scale, (bottom - top) / scale, filteredPaint);
Restore();

Clark Kent

unread,
Sep 15, 2022, 10:52:30 PM (9 days ago) Sep 15
to skia-discuss
as ` DrawNinePatch ` invokes `SkPaint.drawImageLattice` and it does not have `SkSamplingOptions`
Reply all
Reply to author
Forward
Message has been deleted
0 new messages