DrawIntelligentMailBarcode

Vector graphics, Barcodes

Description

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

Syntax

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);