bitmap64 to bitmap32
时间: 2023-08-05 21:11:00 浏览: 158
C# Bitmap转RGB32(NI)
要将64位的bitmap转换为32位的bitmap,可以使用Bitmap的createBitmap方法。首先,将64位的bitmap转换为base64字符串,然后去除前缀信息。接下来,使用BitmapUtil工具类中的base64ToBitmap方法将base64字符串转换为32位的bitmap。以下是示例代码:
```java
String base64Data = "your base64 data without prefix";
Bitmap bitmap32 = BitmapUtil.base64ToBitmap(base64Data);
```
请注意,这里的base64Data是去除了前缀信息的base64字符串。你可以使用String的substring方法去除前缀信息。
#### 引用[.reference_title]
- *1* *2* [Bitmap和Base64之间的转换及其注意事项](https://blog.csdn.net/dirksmaller/article/details/108204169)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Roaring64Bitmap实践](https://blog.csdn.net/xiao__jia__jia/article/details/113069094)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文