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 The text to encode in the QR Code
Text
EncodeOptions0=Auto 1=Numeric 2=Alphanumeric 3=ISO-8859-1 4=UTF-8 with BOM 5=UTF-8 without BOM 0 = Normal 1 = Rotate 90 degrees anti-clockwise 2 = Rotate 180 degrees 3 = Rotate 90 degrees clockwise
DrawOptions

Return values

0The QR Code could not be drawn, check for an out of range value for the EncodeOptions or DrawOptions parameter.
1The QR Code was drawn successfully.