DrawAztecCode
Vector graphics, Barcodes
Description
Draws an ISO/IEC 24778 Aztec Code 2D matrix barcode onto the selected page using native vector paths
Syntax
Delphi
Function TPDFlib.DrawAztecCode(Left, Top, SymbolSize: Double;
Const Text: WideString; ErrorCorrectionPercent, CompactOption,
DrawOptions: Integer): Integer;ActiveX
Function PDFlib::DrawAztecCode(Left As Double, Top As Double, SymbolSize As Double, Text As String, ErrorCorrectionPercent As Long, CompactOption As Long, DrawOptions As Long) As LongDLL
int DLDrawAztecCode(int InstanceID, double Left, double Top, double SymbolSize, const wchar_t* Text, int ErrorCorrectionPercent, int CompactOption, int DrawOptions);
int DLDrawAztecCodeA(int InstanceID, double Left, double Top, double SymbolSize, const char* Text, int ErrorCorrectionPercent, int CompactOption, int DrawOptions);Parameters
| Left | The horizontal coordinate of the left edge of the Aztec symbol |
|---|---|
| Top | The vertical coordinate of the top edge of the Aztec symbol |
| SymbolSize | The width and height of the square Aztec symbol in current coordinate units |
| Text | The payload text or byte sequence to encode |
| ErrorCorrectionPercent | Minimum Reed-Solomon error correction percentage (1 to 90; pass 23 or 0 for the ISO/IEC 24778 recommended 23% default) |
| CompactOption | Symbol format selection: 0 = Auto (selects the smallest fitting Compact or Full-Range symbol), 1 = Compact only (1 to 4 layers), 2 = Full-Range only (1 to 32 layers) |
| DrawOptions | Rotation option: 0 = Normal, 1 = Rotate 90 degrees anticlockwise, 2 = Rotate 180 degrees, 3 = Rotate 90 degrees clockwise |
Return values
| 0 | The Aztec symbol could not be drawn due to empty text, invalid parameters, or payload exceeding the selected symbol capacity |
|---|---|
| 1 | The Aztec symbol was drawn successfully |
Remarks
Compact symbols use at most 64 data words; larger requests fall through to Full-Range in automatic mode or fail in Compact-only mode
Data rings follow the standard left, bottom, right and top sequence, and Full-Range symbols reserve the centre and reference-grid lines before mapping data modules