首页 > 系统 > Android > 正文

Android canvas 画bitmap自动变小

2019-11-06 09:44:07
字体:
来源:转载
供稿:网友
 BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = false; options.inScaled = false;  //设置为false,画到画布上是还是会变大或者变小??? Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.test, options);
自己实际遇这种情况,找了半天资料没有找到原因,最后找到了是因为画布的背景图和画在画布上的bitmap,不在同一个分辨率的文件夹下会导致这种问题。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表