DrawGS1DataBar

ベクターグラフィック、バーコード

説明

13 桁または 14 桁の GTIN ペイロードをエンコードした GS1 DataBar Omnidirectional(RSS-14)の 1D バーコードシンボルを、ファインダーパターンとガードバー付きで描画します

Delphi ファサードメソッドは Omnidirectional バリアントに固定です。ActiveX と DLL のエントリポイントには追加の Variant セレクタがありますが、対応するのは 0 のみで、その他の値は LastErrorCode 301 で 0 を返します

構文

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 ペイロード
VariantActiveX と DLL のエントリポイントのみ。0 で Delphi ファサードメソッドが描く既定の Omnidirectional シンボルを選択します
Optionsバーコードレンダラーへ渡す描画オプションのマスク

戻り値

0バーコードを描画できませんでした。ペイロードが有効な GTIN でないか、パラメータが無効です
1バーコードを描画しました

Delphi の DrawGS1DataBarEx は同じ Variant と Options の引数を受け取ります。互換契約の詳細は Automation extensions を参照してください

関連項目

DrawGS1DataBarEx, DrawBarcode, DrawAztecCode, DrawQRCode, GetBarcodeWidth