Hi Team,
I have a requirement of drawing High Quality image Image of size 6000x4000 pixels.
And I'm trying to draw it in 300x200 pixels. In the entire process , scaling pixels with
SkSamplingOptions(kLinear, kLinear) is consuming too much of time.
I’m using pixmap.scalePixels(dstPixmap, SkSamplingOptions(SkFilterMode::kLinear,SkMipmapMode::kLinear); It is taking approximately 510ms for drawing a 6.3MB JPG image.
And SkSamplingOptions(SkFilterMode::kNearest,SkMipmapMode::kNone) is taking approximately 2-3ms for same image. But the image is completely blurred.
High Quality image : (using SkSamplingOptions(SkFilterMode::kLinear,SkMipmapMode::kLinear))
Blurred Pixelated Image : (using SkSamplingOptions(SkFilterMode::kNearest,SkMipmapMode::kNone))Is there any other way to draw same High Quality image faster?