DrawGS1DataBar
Vector graphics, Barcodes
Description
Draws a GS1 DataBar Omnidirectional (RSS-14) 1D barcode symbol encoding a 13-digit or 14-digit GTIN payload with finder patterns and guard bars
The Delphi facade method pins the Omnidirectional variant; the ActiveX and DLL entry points carry an additional Variant selector; only zero is supported, and other values return zero with LastErrorCode 301
Syntax
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);Parameters
| Left, Top, Width, Height | Symbol rectangle in current measurement units and coordinate origin |
|---|---|
| Text | The 13-digit or 14-digit GTIN payload to encode |
| Variant | ActiveX and DLL entry points only; 0 selects the default Omnidirectional symbol drawn by the Delphi facade method |
| Options | Drawing options mask passed to the barcode renderer |
Return values
| 0 | The barcode could not be drawn; the payload is not a valid GTIN or the parameters are invalid |
|---|---|
| 1 | The barcode was drawn successfully |
Delphi DrawGS1DataBarEx accepts the same Variant and Options arguments; see Automation extensions for the compatible contracts
See also
DrawGS1DataBarEx, DrawBarcode, DrawAztecCode, DrawQRCode, GetBarcodeWidth