Image FilterMode broken ?

12 views
Skip to first unread message

Mao

unread,
Oct 13, 2021, 10:32:47 AM10/13/21
to skia-discuss
Hello,

I'm new to Skia and i'm trying to draw a simple image using linear filtering.

SkPaint paint;
paint.setAntiAlias(true);
SkSamplingOptions options(SkFilterMode::kLinear);
canvas->drawImage(image, 100, 100, {}, &paint);

When i trace the app using apitrace i can't locate any GL_LINEAR flag but only GL_NEAREST.

Does anyone have an idea about this.

Thank you all.

Reply all
Reply to author
Forward
0 new messages