Redraws current barcode symbol in the TImage control that's specified by the Image property.
function Draw(ReEncode: Boolean = False): Boolean; virtual;
The method redraws the barcode symbol to the TImage control that's specified by the Image property. The barcode symbol is specified in the properties of this barcode component.
ReEncode: Boolean; Normally, the barcode text will not be encoded again when call the method, the previous encoded data will be used to draw the barcode symbol. If the parameter is set to true, the barcode text will be encoded again before draw the barcode symbol. It defaults to false if the parameter is not provided.
If you changed the OnEncode event handle, please call the method and set the parameter to true (please call the Clear method firstly).
If the method succeeds, the return value is true.
If you use the Barcode property to specify the barcode text, when the length of Barcode property value is invalid, or there is any invalid character in the Barcode property value, the return value is false. Corresponding to the OnInvalidLength event or the OnInvalidChar event will occur.
If you use the Data property to specify the barcode text, when the length of Data property value is invalid, or there is any invalid byte value in the Data property value, the return value is false. Corresponding to the OnInvalidDataLength event or the OnInvalidDataChar event will occur.