DrawGS1DataBarA

矢量图形、条形码

描述

末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 DrawGS1DataBar 相同,字符串参数按当前 SetAnsiMode 代码页解释

绘制 GS1 DataBar Omnidirectional(RSS-14)一维条码符号,编码 13 位或 14 位 GTIN 载荷,带定位图案与保护条

Delphi 门面方法固定为 Omnidirectional 变体;ActiveX 与 DLL 入口点多一个 Variant 选择器;仅支持 0,其他值返回 0 并置 LastErrorCode 301

语法

Delphi

Function DLDrawGS1DataBarA(InstanceID: Integer; Left, Top, Width, Height: Double; Text: PAnsiChar; Variant, Options: Integer): Integer;

DLL

int DLDrawGS1DataBarA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text, int Variant, int Options);

参数

Left, Top, Width, Height当前测量单位与坐标原点下的符号矩形
Text要编码的 13 位或 14 位 GTIN 载荷
Variant仅 ActiveX 与 DLL 入口点;0 选择 Delphi 门面方法绘制的默认 Omnidirectional 符号
Options传给条码渲染器的绘制选项掩码

返回值

0条码未能绘制;载荷不是合法 GTIN 或参数非法
1条码绘制成功

Delphi 的 DrawGS1DataBarEx 接受相同的 Variant 与 Options 参数;兼容契约见 Automation extensions

另请参阅

DrawGS1DataBarEx, DrawBarcode, DrawAztecCode, DrawQRCode, GetBarcodeWidth