DrawIntelligentMailBarcodeA

Vector graphics, Barcodes

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawIntelligentMailBarcode and string arguments are interpreted using the current SetAnsiMode code page

This function draws a USPS Intelligent Mail (also known as OneCode) barcode onto the page

Syntax

Delphi

Function DLDrawIntelligentMailBarcodeA(InstanceID: Integer; Left, Top, BarWidth, FullBarHeight, TrackerHeight, SpaceWidth: Double; BarcodeData: PAnsiChar; Options: Integer): Integer;

DLL

int DLDrawIntelligentMailBarcodeA(int InstanceID, double Left, double Top, double BarWidth, double FullBarHeight, double TrackerHeight, double SpaceWidth, const char * 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

0The barcode could not be drawn
1The barcode was drawn successfully double SpaceWidth, wchar_t * BarcodeData, int Options);