Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从扫描仪创建指纹图像。当我从扫描仪扫描手指然后获取原始数据但我无法转换为图像。我尝试了很多链接,但我的问题还没有解决。那么如何在android中将raw转换为图像?有可用的第三方库吗?
如果您有图像的原始字节,则可以执行以下操作:
Bitmap bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); bm.copyPixelsFromBuffer(ByteBuffer.wrap(rawData));