DrawQRCodeA

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 DrawQRCode and string arguments are interpreted using the current SetAnsiMode code page

Draws a QR Code onto the selected page.

Syntax

Delphi

Function DLDrawQRCodeA(InstanceID: Integer; Left, Top, SymbolSize: Double; Text: PAnsiChar; EncodeOptions, DrawOptions: Integer): Integer;

DLL

int DLDrawQRCodeA(int InstanceID, double Left, double Top, double SymbolSize, const char* Text, int EncodeOptions, int DrawOptions);

Parameters

LeftThe horizontal coordinate of the left edge of the QR Code
TopThe vertical coordinate of the top edge of the QR Code
SymbolSizeThe width and height of the QR Code
TextThe text to encode in the QR Code
EncodeOptions0=Auto 1=Numeric 2=Alphanumeric 3=ISO-8859-1 4=UTF-8 with BOM 5=UTF-8 without BOM
DrawOptions0 = Normal 1 = Rotate 90 degrees anti-clockwise 2 = Rotate 180 degrees 3 = Rotate 90 degrees clockwise

Return values

0The QR Code could not be drawn: check for an out of range value for the EncodeOptions or DrawOptions parameter, for text containing characters that the Numeric, Alphanumeric or ISO-8859-1 mode selected by EncodeOptions cannot represent, and for text too long for a QR Code.
1The QR Code was drawn successfully.