--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
There are many options. We need to get rid of a few.drawBitmap can control quality by providing a pointer to a paint, but Bitmaps are (one of) the redheaded step-children of Skia and may go away someday.Your best choice is SkImage.paint.setFilterQuality(kHigh_SkFIlterQualtiy);canvas->drawImage(image.get(), 0, 0, &paint);For more flexibility (e,g., to fill a path with an image) add an SkImageShader to a SkPaint.
On Thu, Feb 16, 2017 at 2:19 PM, Matthew Leibowitz <mattl...@live.com> wrote:
I am resizing bitmaps here, and I was just wondering what is the correct way to do this. There are several options:
- SkCanvas::drawBitmap() - this can't control quality, I think
- SkPixmap::scalePixels() - this looks promising
- SkBitmapScaler - this is "private" or "internal"
What is the correct option, and are they any better options?
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Both SkBitmap and SkPixmap are slowly headed towards the chopping block.