Hi,
the attached QR code in GIF format has been produced by Aspose BarCode.
The byte at position 0xB is the background color index. Since the byte at position 0xA indicates the presence of a global color table, the background color index must be valid. However, the global color table only has 2 entries (6 bytes) while the background color index is 0xFF, which is plainly out of range.
Please either eliminate the global color table altogether or ensure that the background color index is correct.
Regards
Mario
Hi Mario,
Hi Imran,
I’m on 6.8.0.
I don’t understand why you need the code that produces the barcode. The error is in the .gif format, not in the barcode, so it has nothing to do with how I generate the barcode but on the part of the library that produces the .gif. Anyway, here it is:
public static void main(String[] args) throws Exception {
License license = new License();
license.setLicense(“path to licence”);
BarCodeBuilder b = new BarCodeBuilder();
b.setSymbologyType(Symbology.QR);
b.setQREncodeMode(QREncodeMode.Auto);
b.setQRErrorLevel(QRErrorLevel.LevelH);
b.setCodeLocation(CodeLocation.None);
b.setGraphicsUnit(GraphicsUnit.Pixel);
b.setMargins(new MarginsF(1, 1, 1, 1));
b.setCodeText(“0123456789”);
FileOutputStream os = new FileOutputStream(“path for result”);
b.save(os, BarCodeImageFormat.Gif);
}
Regards
Mario
Hi Mario,
Hi Mario,
The issues you have found earlier (filed as BARCODJAVA-33519) have been fixed in Aspose.BarCode for Java 7.1.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Imran,
thanks for fixing the issue!
Have a nice weekend
Mario
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan