【Foxit PDF SDK】福昕GSDK如何从字符串生成条形二维码位图?

请参考以下代码:

// 用作条形码内容的字符串。

String codeStr = "TEST-SHEET"

// 条码格式类型。

int codeFormat = Barcode.e_FormatCode39;

// QR码的格式纠错级别。

int qrLevel = Barcode.e_QRCorrectionLevelLow;

//为QR码保存的图像文件的图像名称。

String bmpQrName = "/QR_CODE_TestForBarcodeQrCode_L.bmp";

//条码的单位宽度(以像素为单位),首选值为1-5像素。

int unitWidth = 2;

// 条码的单位高度(以像素为单位),首选值为>= 20像素。

int unitHeight = 120;

Barcode barcode = new Barcode();

Bitmap bitmap = barcode.generateBitmap(codeStr, codeFormat, unitWidth, unitHeight, qrLevel);