這個問題是在參考了API文檔的鏈接,http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/barcodelib/BarcodeBitmap.html如何使用新的createbitmap方法
時設置糾錯等級爲QR碼他們指定的舊方法
public static Bitmap createBitmap(ByteMatrix byteMatrix,
int maxBitmapSizeInPixels)
已被棄用。
但是,通過使用新的方法,
public static Bitmap createBitmap(ByteMatrix byteMatrix)
他們還沒有指定一個方法來指定在Multiformatwriter QR碼的糾錯等級。我也無法找到一種方法,通過各種成員功能進行查看。 有沒有人試過嗎?
感謝您的幫助。
如果您指的是這些文檔中有兩行,我也看過他們。 'MultiFormatWriter barcodeWriter = new MultiFormatWriter(); ByteMatrix barcode = barcodeWriter.encode(「abcdefg」,BarcodeFormat.QR_CODE,25,25);'但他們沒有提供提供QR碼錯誤校正級別的方法。 – 2012-07-18 16:47:56
查看我的答案,下面是關於如何通過錯誤修正提示的設置,使用ZXing的內置常量的具體細節 – mmcrae 2015-10-26 14:23:39