AztecCodeVersion Enum
Lists Aztec Code sizes.
Declaration
public enum AztecCodeVersion extends Enum<AztecCodeVersion> implements IIntEnum
Members
| Name | Description |
|---|---|
AUTO_VERSION
|
AztecBarCode size is auto-calculated. |
VERSION_101X101
|
101x101 squares. |
VERSION_105X105
|
105x105 squares. |
VERSION_109X109
|
109x109 squares. |
VERSION_113X113
|
113x113 squares. |
VERSION_117X117
|
117x117 squares. |
VERSION_121X121
|
121x121 squares. |
VERSION_125X125
|
125x125 squares. |
VERSION_131X131
|
131x131 squares. |
VERSION_135X135
|
135x135 squares. |
VERSION_139X139
|
139x139 squares. |
VERSION_143X143
|
143x143 squares. |
VERSION_147X147
|
147x147 squares. |
VERSION_151X151
|
151x151 squares. |
VERSION_15X15_COMPACT
|
15x15 squares of the compact Aztec Code. |
VERSION_19X19
|
19x19 squares. |
VERSION_19X19_COMPACT
|
19x19 squares of the compact Aztec Code. |
VERSION_23X23
|
23x23 squares. |
VERSION_23X23_COMPACT
|
23x23 squares of the compact Aztec Code. |
VERSION_27X27
|
27x27 squares. |
VERSION_27X27_COMPACT
|
27x27 squares of the compact Aztec Code. |
VERSION_31X31
|
31x31 squares. |
VERSION_37X37
|
37x37 squares. |
VERSION_41X41
|
41x41 squares. |
VERSION_45X45
|
45x45 squares. |
VERSION_49X49
|
49x49 squares. |
VERSION_53X53
|
53x53 squares. |
VERSION_57X57
|
57x57 squares. |
VERSION_61X61
|
61x61 squares. |
VERSION_67X67
|
67x67 squares. |
VERSION_71X71
|
71x71 squares. |
VERSION_75X75
|
75x75 squares. |
VERSION_79X79
|
79x79 squares. |
VERSION_83X83
|
83x83 squares. |
VERSION_87X87
|
87x87 squares. |
VERSION_91X91
|
91x91 squares. |
VERSION_95X95
|
95x95 squares. |
fromValue(int value)
|
Returns the |
getName()
|
Returns the name of the |
getValue()
|
Returns the integer value associated with the |
toString()
|
Returns the string representation of the |
valueOf(String name)
|
Returns the |
values()
|
Returns an array of all |
Remarks
The following code snippet creates an Aztec Code barcode and customizes its encoding parameters with the Fluent API:
import com.devexpress.drawing.*;
import com.devexpress.docs.barcode.*;
import com.devexpress.system.drawing.*;
import com.devexpress.docs.Padding;
import java.io.*;
import java.nio.file.*;
public class Main {
public static void main(String[] args) throws Exception {
AztecCodeOptions options = AztecCodeOptionsBuilder.create()
.withCompactionMode(AztecCodeCompactionMode.TEXT)
.withErrorCorrectionLevel(AztecCodeErrorCorrectionLevel.LEVEL_2)
.withVersion(AztecCodeVersion.AUTO_VERSION)
.withModuleSize(5)
.withShowText(false)
.build();
Path outputDir = Path.of("output");
Files.createDirectories(outputDir);
try (FileOutputStream fileStream = new FileOutputStream(
outputDir.resolve("aztec.png").toFile());
BarcodeGenerator barcodeGenerator = new BarcodeGenerator(options)) {
barcodeGenerator.export(
"https://www.devexpress.com/try",
fileStream,
DXImageFormat.getPng());
}
}
}
Refer to the following help topic for additional information: Aztec Code.