Blurry Pixel Paint On Scaled Canvas Drawbitmap On Samsung Devices
Some users encountered blurry pixels issue on Samsung devices. I don't have any Samsung device to check, but there is no problems with phones I have. I can't understand what is dif
Solution 1:
Your bitmap looks filtered. To fix this, you can call:
backgroundPaint.setFilterBitmap(false)
The question then becomes, why does it only appear to do this on Samsung devices? Obviously, app programmers must be able to predict which state their Paint
objects are in, otherwise their apps will break (as yours did).
So, I ran this past a few devices in my test lab. It appears that the default isFilterBitmap()
setting (FILTER_BITMAP_FLAG
) changed on API 29, although I'm unable to find it in the source code (if anyone can find it, or has more insight, please add a comment, or suggest an edit!)
Device API level isFilterBitmap() default
---------------------------------------------------------------------
Pixel 3 XL 29 true
Pixel 2 XL emulator 29 true
Pixel 2 XL emulator 28 false
Pixel 2 emulator 26 false
Samsung S6 25 false
Samsung S4 21 false
Droid RAZR 16 false
Post a Comment for "Blurry Pixel Paint On Scaled Canvas Drawbitmap On Samsung Devices"