TTMSFNCWXCustomBarcode.GetBarcode Method
Encodes the supplied value with the current settings and returns the rendered barcode as a bitmap.
API unit family: TMSFNCWXBarcode
Declaring type: TTMSFNCWXCustomBarcode
Syntax
function GetBarcode(AText: string): TTMSFNCBitmap;
Parameters
| Name | Description |
|---|---|
AText |
The data to encode. It must conform to the active symbology's format; an invalid value clears the symbol and raises an exception. |
Returns
A newly created bitmap containing the rendered barcode, or nil when no image could be produced. The caller owns the returned bitmap and is responsible for freeing it.
Exceptions
| Exception | Description |
|---|---|
Exception |
Raised when the value does not match the selected symbology's format. |