0

我需要将位图转换为字节数组(字节 [])。有人建议使用Bitmap.getRGB656(...)可以解决我的问题。如果它什么都不返回,我将如何使用该方法?该方法中的参数是否byte[]将保存 my 的字节数组Bitmap?其他参数呢?

4

2 回答 2

3

getRGB565(...) will solve your problem. You can also try getARGB(...). And It is good practice to read the API documentation to get more information regarding any API method. So, read the documentation :).

于 2012-12-28T21:37:41.467 回答
0

解决方案在这里。感谢 Arhimed。

于 2013-01-04T00:31:27.753 回答