THPDFPage.DrawAztec Method

Encodes Data as an Aztec 2D barcode (ISO/IEC 24778) and renders the symbol as filled module squares at the given page position

Declaration

function DrawAztec(const Data: AnsiString; X, Y: Single; ModuleSize: Single= 2; Color: TColor= clBlack): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
DataLatin-1 byte payload carried by the symbol
XLeft edge of the symbol in the current HotPDF coordinate space
YTop edge of the symbol in the current HotPDF coordinate space
ModuleSizeWidth and height of one module square in page units
ColorFill colour of the dark modules

Return value

The symbol size in modules per side, or 0 when the data cannot be encoded

Usage notes

Related APIs