DrawGS1DataBarA
Vector graphics, Barcodes
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawGS1DataBar and string arguments are interpreted using the current SetAnsiMode code page
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 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);
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