DrawQRCode
Version history
This function was introduced in Quick PDF Library version 10.11.
Description
Draws a QR Code onto the selected page.
Syntax
Delphi
function TDebenuPDFLibrary1811.DrawQRCode(Left, Top, SymbolSize: Double;
Text: WideString; EncodeOptions, DrawOptions: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::DrawQRCode(Left As Double, Top As Double,
SymbolSize As Double, Text As String, EncodeOptions As Long,
DrawOptions As Long) As Long
DLL
int DPLDrawQRCode(int InstanceID, double Left, double Top, double SymbolSize,
wchar_t * Text, int EncodeOptions, int DrawOptions)
Parameters
Left | The horizontal coordinate of the left edge of the QR Code |
Top | The vertical coordinate of the top edge of the QR Code |
SymbolSize | The width and height of the QR Code |
Text | The text to encode in the QR Code |
EncodeOptions |
0=Auto 1=Numeric 2=Alphanumeric 3=ISO-8859-1 4=UTF-8 with BOM 5=UTF-8 without BOM |
DrawOptions |
0 = Normal 1 = Rotate 90 degrees counter clockwise 2 = Rotate 180 degrees 3 = Rotate 90 degrees clockwise |
Return values
0 | The QR Code could not be drawn, check for an out of range value for the EncodeOptions or DrawOptions parameter. |
1 | The QR Code was drawn successfully. |