LazyX
LazyX

Reputation: 187

Android - Losing the quality of PNG image OnDraw

I have picture (particle picture, not moving, just single png), I preapared on photoshop, when On Android device, when you click the screen particle picture shows up, it is a bitmap on a sufraceview (drawed by OnDraw method), but it is terribly losing its quality

Any suggestions (See the test photoshop image and real screenshot from device) ?

Thanks

Difference

Upvotes: 1

Views: 976

Answers (2)

Tony D
Tony D

Reputation: 1531

Not sure if this is the same issue, but I was getting a blurry png image too which I reference from an ImageView in my layout xml file. It is a 24 bit image also, but it wasn't until I saved the image with a larger width and height that it actually looked good. I went from a width of 88 to 250 and now the image looks great.

Upvotes: 0

colymore
colymore

Reputation: 12346

Save the png with high quality(24)

Upvotes: 1

Related Questions