DrawDataMatrixSymbol

Vektorgrafikk, Strekkoder

Beskrivelse

Denne funksjonen tegner et Data Matrix-symbol på siden. Data Matrix er en 2D-strekkodesymbologi som tillater store datamengder å lagres

Syntaks

Delphi

Function TPDFlib.DrawDataMatrixSymbol(Left, Top, ModuleSize: Double; Const Text: WideString; Encoding, SymbolSize, Options: Integer): Integer;

ActiveX

Function PDFlib::DrawDataMatrixSymbol(Left As Double, Top As Double, ModuleSize As Double, Text As String, Encoding As Long, SymbolSize As Long, Options As Long) As Long

DLL

int DLDrawDataMatrixSymbol(int InstanceID, double Left, double Top, double ModuleSize, const wchar_t * Text, int Encoding, int SymbolSize, int Options);

Parametere

LeftDen horisontale koordinaten til symbolets venstre kant
TopDen vertikale koordinaten til symbolets øvre kant
ModuleSizeDenne verdien brukes for bredden og høyden på prikkene som utgjør symbolet
TextTeksten/dataene som skal lagres i symbolet
Encoding1 = ASCII-koding. Se Data Matrix-spesifikasjonen for detaljer
SymbolSize0 = Automatisk størrelse 1 = 10x10 2 = 12x12 3 = 8x18 4 = 14x14 5 = 8x32 6 = 16x16 7 = 12x26 8 = 18x18 9 = 20x20 10 = 12x36 11 = 22x22 12 = 16x36 13 = 24x24 14 = 26x26 15 = 16x48 16 = 32x32 17 = 36x36 18 = 40x40 19 = 44x44 20 = 48x48 21 = 52x52 22 = 64x64 23 = 72x72 24 = 80x80 25 = 88x88 26 = 96x96 27 = 104x104 28 = 120x120 29 = 132x132 0 = Normal 1 = Roter 90 grader mot klokken 2 = Roter 180 grader 3 = Roter 90 grader med klokken Legg til 100 for 1 enhet stillsonesone (hvit kant) - (standard) Legg til 200 for 2 enheter stillsonesone Legg til 300 for 3 enheter stillsonesone Legg til 400 for 4 enheter stillsonesone
Options

Returverdier

0Encoding-, SymbolSize- eller Options-parameteren var ugyldig
1Data Matrix-symbolet ble tegnet int SymbolSize, int Options);