标签:deb data bytearray pre col count() pix locate color
1、bitmap转byte[]
int bytes = bmp.getByteCount(); ByteBuffer buf = ByteBuffer.allocate(bytes); bmp.copyPixelsToBuffer(buf); byte[] byteArray = buf.array();
2、byte[]转bitmap
Bitmap bitmap = BitmapFactory.decodeByteArray(bitmapdata, 0, bitmapdata.length);
标签:deb data bytearray pre col count() pix locate color
原文地址:https://www.cnblogs.com/zhaozilongcjiajia/p/10425170.html