// 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);