DrawIntelligentMailBarcode

Vektorgrafik, stregkoder

Beskrivelse

Denne funktion tegner en USPS Intelligent Mail-stregkode (også kendt som OneCode) 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);

Parametre

Left

Vandret koordinat for stregkodens venstre kant

Lodret koordinat for stregkodens øverste kant

Top

Bjælkernes bredde

BarWidth

FullBarHeight

Højden på en fuld bjælke

TrackerHeight

Højden på en skyderlinje

SpaceWidth

Bredden på mellemrummene mellem stregerne

BarcodeData

De stregkodedata, der skal kodes. Dette skal være en streng på 20, 25, 29 eller 31 tegn, som kun indeholder cifrene 0 til 9. Mellemrum og andre ikke-numeriske tegn accepteres ikke. Det andet ciffer må højst være 4.

Options

0 = Normal

10 = Reduktion af stregbredde

Returværdier

0Stregkoden kunne ikke tegnes
1Stregkoden blev tegnet korrekt double SpaceWidth, wchar_t * BarcodeData, int Options);