DrawGS1DataBar
矢量图形、条形码
描述
绘制 GS1 DataBar Omnidirectional(RSS-14)一维条码符号,编码 13 位或 14 位 GTIN 载荷,带定位图案与保护条
Delphi 门面方法固定为 Omnidirectional 变体;ActiveX 与 DLL 入口点多一个 Variant 选择器;仅支持 0,其他值返回 0 并置 LastErrorCode 301
语法
Delphi
Function TPDFlib.DrawGS1DataBar(Left, Top, Width, Height: Double; Const Text: WideString; Options: Integer): Integer;ActiveX
Function PDFlib::DrawGS1DataBar(Left As Double, Top As Double, Width As Double, Height As Double, Text As String, Variant As Long, Options As Long) As LongDLL
int DLDrawGS1DataBar(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t* Text, int Variant, int Options);
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