我正在 Canvas 上绘制全屏位图,我使用的 jpg 是 TAB 10.1 的原始分辨率(1280x752 .. 还尝试了 1280x800,这是包括底部菜单的尺寸)
但是即使不应该进行缩放,图片在屏幕上也会变得非常像素化
这是 the picture I use for this test和 this is the result on the TAB
这是我使用的代码:
Rect rct = new Rect( 0, 0, 1280, 752 );
canvas.drawBitmap( bitmap, null, rct, lPaint );
为什么图片没有按应有的方式显示?
最佳答案
在使用 lPaint 之前尝试以下操作:
lPaint = new Paint();
lPaint.setAntiAlias(true);
lPaint.setFilterBitmap(true);
lPaint.setDither(true);
关于android - 全屏位图在 TAB 10.1 上变得像素化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8752830/