DrawQRCode
Vektorgrafik, Barcodes
Beschreibung
Zeichnet einen QR Code auf die ausgewählte Seite.
Syntax
Delphi
Function TPDFlib.DrawQRCode(Left, Top, SymbolSize: Double; Const Text: WideString; EncodeOptions, DrawOptions: Integer): Integer;
ActiveX
Function PDFlib::DrawQRCode(Left As Double, Top As Double, SymbolSize As Double, Text As String, EncodeOptions As Long, DrawOptions As Long) As Long
DLL
int DLDrawQRCode(int InstanceID, double Left, double Top, double SymbolSize, const wchar_t* Text, int EncodeOptions, int DrawOptions);
int DLDrawQRCodeA(int InstanceID, double Left, double Top, double SymbolSize, const char* Text, int EncodeOptions, int DrawOptions);
Parameter
| Left | Die horizontale Koordinate des linken Rands des QR Code |
|---|---|
| Top | Die vertikale Koordinate des oberen Rands des QR Code |
| SymbolSize | Breite und Höhe des QR Code |
| Text | Der im QR Code zu codierende Text |
| EncodeOptions | Der Kodiermodus plus die Fehlerkorrekturstufe. Modus: 0=Auto 1=Numerisch 2=Alphanumerisch 3=ISO-8859-1 4=UTF-8 mit BOM 5=UTF-8 ohne BOM. Addieren Sie 16 für Stufe M, 32 für Stufe Q oder 48 für Stufe H; ohne Zusatz nutzt das Symbol Stufe L. So kodiert 21 UTF-8 ohne BOM auf Stufe M, wie ein SEPA-Zahlungscode es verlangt |
| DrawOptions | 0 = Normal 1 = Um 90 Grad gegen den Uhrzeigersinn drehen 2 = Um 180 Grad drehen 3 = Um 90 Grad im Uhrzeigersinn drehen |
Rückgabewerte
| 0 | Der QR Code konnte nicht gezeichnet werden; prüfen Sie EncodeOptions und DrawOptions auf Werte außerhalb des zulässigen Bereichs. |
|---|---|
| 1 | Der QR Code wurde erfolgreich gezeichnet. |