gigi38660
gigi38660

Reputation: 1

Scaled image issue with BitmapFactory

I'm trying to draw a mipmap in a canvas using canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.mipmap.keyb_style_02), 0, 1445, null);

On a XHDPI screen it works
On a XXHDPI screen, the mipmap is displayed but not scaled correctly

I tried BitmapFactory options but it doesn't works

The white line is to indicate where the right side of the image should be drawn

[Screenshot] : https://i.sstatic.net/yxlybG0w.png

Thank you

Gigi

Upvotes: 0

Views: 10

Answers (0)

Related Questions