We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
记得作者之前章节写过,Android的默认色彩模式是RGB_565.
我在后面章节在做测试时发现一个问题:
@Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.maps); canvas.drawBitmap(bitmap, new Matrix(), null); }
我的bitmap的大小是byte[394383], 图片分辨率是314 * 314。计算一下,394383 / (314 * 314) = 4。也就是说一个像素点占位4个字节。(RGB_565我记得是1个像素占位2个字节,而ARGB_8888是1个像素4个字节)
问下,是不是Android的默认色彩模式不同的手机系统不一样?还是只是图片色彩模式不一样?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
记得作者之前章节写过,Android的默认色彩模式是RGB_565.
我在后面章节在做测试时发现一个问题:
我的bitmap的大小是byte[394383], 图片分辨率是314 * 314。计算一下,394383 / (314 * 314) = 4。也就是说一个像素点占位4个字节。(RGB_565我记得是1个像素占位2个字节,而ARGB_8888是1个像素4个字节)
问下,是不是Android的默认色彩模式不同的手机系统不一样?还是只是图片色彩模式不一样?
The text was updated successfully, but these errors were encountered: