Returns an Image object containing an Aztec barcode.
public static Image createAztec(String data, double moduleSize, int rotation, int resolution, int preferredFormat, boolean handleTilde, String imageFormat) |
Parameters
data
Specifies a string which will be encoded by Aztec barcode.
moduleSize
Specifies the size (width/height) in centimeters of a square-shaped module.
rotation
Specifies the orientation of the barcode, a valid value should be 0, 1, 2, or 3. Please refer to Orientation Constants.
resolution
Specifies the resolution (DPI) of a device onto which a barcode will be rendered. The default value is 96 for computer screen.
preferredFormat
Specifies the preferred format for Aztec barcode, a valid value should be between 0 and 36. Please refer to Format Constants.
handleTilde
Specifies a boolean flag indicating whether or not it is required to process the tilde character "~". If it is set to TRUE, non-printable characters can be passed to a barcode using the tilde character, "~dNNN" represents an ASCII character encoded by the 3 digits NNN, for example, "~d010" represents the character LF (line feed).
imageFormat
Specifies barcode image format, it can be "bmp", "jpg", or "png".