Le funzioni encoder semplici restituiscono le barre generate tramite TSimpleBarArray, un array di record TSimpleBarcodeBar

Record Fields
TSimpleBarcodeBarWidth contains the module width contribution, and Filled identifies whether the segment is a printed bar
TSimpleBarArrayDynamic array of TSimpleBarcodeBar values filled by the Simple* functions

Simple Encoder Functions

Each function has the signature function Name(const Text: AnsiString; var Bars: TSimpleBarArray): Integer and returns the total generated bar width

Group Functions
Code 2/5SimpleCode25Interleaved, SimpleCode25Industrial, SimpleCode25Matrix
Code 39 and Code 93SimpleCode39, SimpleCode39Extended, SimpleCode93, SimpleCode93Extended
Code 128 and EAN-128SimpleCode128A, SimpleCode128B, SimpleCode128C, SimpleEAN128A, SimpleEAN128B, SimpleEAN128C
Retail and postalSimpleEAN8, SimpleEAN13, SimpleUPC_A, SimpleUPC_E0, SimpleUPC_E1, SimpleUPC_Supp2, SimpleUPC_Supp5, SimplePostNet
Other supported symbologiesSimpleMSI, SimpleCodebar

Example

var
  Bars: TSimpleBarArray;
  TotalWidth: Integer;
begin
  TotalWidth := SimpleCode128B('ABC-123', Bars);
end;

Vedi anche