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 Long

DLL

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