DrawIntelligentMailBarcode
Vektorgrafikk, Strekkoder
Beskrivelse
Denne funksjonen tegner en USPS Intelligent Mail (også kjent som OneCode) strekkode på siden
Syntaks
Delphi
Function TPDFlib.DrawIntelligentMailBarcode(Left, Top, BarWidth, FullBarHeight, TrackerHeight, SpaceWidth: Double; Const BarcodeData: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::DrawIntelligentMailBarcode(Left As Double, Top As Double, BarWidth As Double, FullBarHeight As Double, TrackerHeight As Double, SpaceWidth As Double, BarcodeData As String, Options As Long) As Long
DLL
int DLDrawIntelligentMailBarcode(int InstanceID, double Left, double Top, double BarWidth, double FullBarHeight, double TrackerHeight, double SpaceWidth, const wchar_t * BarcodeData, int Options);
Parametere
Left
Horisontal koordinat for strekkodens venstre kant
Vertikal koordinat for strekkodens øvre kant
Top
Stolpenes bredde
BarWidth
FullBarHeight
Høyden på en hel stolpe
TrackerHeight
Høyden på en tracker-linje
SpaceWidth
Bredden på mellomrommene mellom strekene
BarcodeData
Strekkodedataene som skal kodes. Dette skal være en streng på 20, 25, 29 eller 31 tegn som bare inneholder sifrene 0 til 9. Ingen mellomrom eller andre ikke-numeriske tegn godtas. Det andre sifferet har maksimalverdi 4
Options
0 = Normal
10 = Bar width reduction
Returverdier
| 0 | Strekkoden kunne ikke tegnes |
|---|---|
| 1 | Strekkoden ble tegnet double SpaceWidth, wchar_t * BarcodeData, int Options); |