DrawAztecCodeA
Vector graphics, Barcodes
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawAztecCode and string arguments are interpreted using the current SetAnsiMode code page
Draws an ISO/IEC 24778 Aztec Code 2D matrix barcode onto the selected page using native vector paths
Syntax
Delphi
Function DLDrawAztecCodeA(InstanceID: Integer; Left, Top, SymbolSize: Double; Text: PAnsiChar; ErrorCorrectionPercent, CompactOption, DrawOptions: Integer): Integer;
DLL
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