Draws a barcode symbol on the specified canvas. There are several different overloading methods, Syntax 1, Syntax 2, and Syntax 3:
Syntax 1: Draws the barcode symbol that is specified by the properties of this barcode component.
Syntax 2: Draws the barcode symbol that is specified by the parameters of this method. The barcode text is specified in the Barcode parameter. It is of type string.
The Barcode parameter is in fact an UnicodeString. By default, the unicode string will be converted to an UTF-8 bytes sequence (the BOM isn't included), then be encoded into the barcode symbol. If you want to use other encoding scheme (for example the ANSI, UTF-16), please convert it in the OnEncode event handle, or use the DrawTo (Syntax 3) overloading method and specify the converted bytes sequence in its Data parameter. If you want to encode a block of binary (bytes) data, please use the DrawTo (Syntax 3) overloading method.
Syntax 3: Draws the barcode symbol that is specified by the parameters of this method. The barcode data is specified in the Data parameter. It is of type TBytes (it is in fact a byte array).
You can use the method if you want to encode a block of binary (bytes) data into a barcode symbol.