最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android : Scaled image issue with BitmapFactory - Stack Overflow

programmeradmin1浏览0评论

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] : .png

Thank you

Gigi

发布评论

评论列表(0)

  1. 暂无评论