You can find more details at: Generate Aztec Barcode in Java
Last active
September 22, 2022 16:36
-
-
Save aspose-com-gists/49b1282648f3d54a4f18008fd171988d to your computer and use it in GitHub Desktop.
Generate Aztec Barcode 2D Programmatically in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize BarcodeGenerator class object | |
BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.AZTEC, "Åspóse.Barcóde© is used to generate & recognize barcodes"); | |
// Set size value in pixels | |
gen.getParameters().getBarcode().getXDimension().setPixels(2); | |
// Set symbol mode full range | |
gen.getParameters().getBarcode().getAztec().setAztecSymbolMode(AztecSymbolMode.FULL_RANGE); | |
// Set error correction capacity to 50% | |
gen.getParameters().getBarcode().getAztec().setAztecErrorLevel(50); | |
// Save output Aztec barcode | |
gen.save("Aztec50.png", BarCodeImageFormat.PNG); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize BarcodeGenerator class object | |
BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.AZTEC, "Åspóse.Barcóde©"); | |
// Set size value in pixels | |
gen.getParameters().getBarcode().getXDimension().setPixels(2); | |
// Set symbol mode Compact | |
gen.getParameters().getBarcode().getAztec().setAztecSymbolMode(AztecSymbolMode.COMPACT); | |
// Save output Aztec barcode | |
gen.save("AztecCompact.png", BarCodeImageFormat.PNG); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment