2012-04-10 262 views

回答

-2
writeToFile(BitMatrix matrix, String format, File file) 

thsi方法写BitMatrix到一个文件中,现在可以解码使用

BitmapFactory.decodeFile(newly created file name with path) 

这个文件这将返回一个位图

更多细节见this link

+1

这是行不通的,因为'writeToFile()'在Android模块中不可用。看看这里:http://codeisland.org/2013/generating-qr-codes-with-zxing/ – 2013-09-16 13:53:05