DrawIntelligentMailBarcode
Vector graphics, Barcodes
Description
This function draws a USPS Intelligent Mail (also known as OneCode) barcode onto the page.
Syntax
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);
Parameters
Left
Horizontal co-ordinate of the left edge of the barcode
Vertical co-ordinate of the top edge of the barcode
Top
The width of the bars
BarWidth
FullBarHeight
The height of a full bar
TrackerHeight
The height of a tracker bar
SpaceWidth
The width of the spaces between the bars
BarcodeData
The barcode data to encode. This should be a 20, 25, 29 or 31 character string containing only the digits 0 to 9. No spaces or any other non-numeric characters will be accepted. The second digit has a maximum value of 4.
Options
0 = Normal
10 = Bar width reduction
Return values
| 0 | The barcode could not be drawn |
|---|---|
| 1 | The barcode was drawn successfully double SpaceWidth, wchar_t * BarcodeData, int Options); |