DrawIntelligentMailBarcodeA

向量圖形、條碼

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 DrawIntelligentMailBarcode 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

此函式在頁面上繪製 USPS Intelligent Mail(又稱 OneCode)條碼。

語法

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

參數

Left

條碼左緣的水平座標

條碼上緣的垂直座標

Top

The width of the bars

BarWidth

FullBarHeight

The height of a full bar

TrackerHeight

追蹤列的高度

SpaceWidth

條與條之間空白的寬度

BarcodeData

要編碼的條碼資料。必須是 20、25、29 或 31 個字元的字串,且只含數字 0 到 9,不接受空格或其他非數字字元。第二位數字最大值為 4

Options

0 = Normal

10 = Bar width reduction

傳回值

0無法繪製條碼
1條碼繪製成功 double SpaceWidth, wchar_t * BarcodeData, int Options);