版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有...
unsigned int ARGB1555toARGB8888(unsigned short c) { const unsigned int a = c&0x8000, r ...
首先,我们需要获取源Bitmap对象的宽度和高度,然后使用Bitmap.createBitmap()方法创建一个新的Bitmap对象。 // 获取源Bitmap对象的宽度和高度intwidth=sourceBitmap.getWidth();intheight=sourceBitmap.getHeight();// 创建新的Bitmap对象,指定宽高和像素格式RGB_565BitmapnewBitmap=Bitmap.createBitmap(width,he...