Occurs after representing the barcode symbol. Write an OnDrawBarcode event handler to modify the barcode symbol after it was represented.
type
{ Defined in the pfmxBarcode2D unit }
TUserWorkArea = record
WCanvas: TCanvas;
WBarcode: string;
WBarColor: TAlphaColor;
WSpaceColor: TAlphaColor;
WOpacity: Single;
WModule: Single;
WLeftInPixels: Single;
WTopInPixels: Single;
WAngle: Single;
WShowQuietZone: Boolean;
WMirror: Boolean;
WBarcodeData: TBytes;
WBarcodeLength: Integer;
WQuietZoneWidthInModules_Left: Integer;
WQuietZoneWidthInModules_Top: Integer;
WQuietZoneWidthInModules_Right: Integer;
WQuietZoneWidthInModules_Bottom: Integer;
WSymbolZoneWidthInModules: Integer;
WSymbolZoneHeightInModules: Integer;
WTotalWidthInPixels: Single;
WTotalHeightInPixels: Single;
WSymbolZoneOffsetInPixels_Left: Single;
WSymbolZoneOffsetInPixels_Top: Single;
WAlpha: Single;
WOrgin: TPointF;
WDensityRate: Single;
end;
{ Defined in the pfmxBarcode2D unit }
PUserWorkArea = ^TUserWorkArea;
{ Defined in the pfmxBarcode2D unit }
TOnDrawBarcode = procedure (Sender: TObject; Canvas: TCanvas; PWorkArea: PUserWorkArea) of object;
property OnDrawBarcode: TOnDrawBarcode;
Sender: TObject; It is the object whose event handler is called.
Canvas: TCanvas; The target canvas, the barcode symbol will be represented in it.
PWorkArea: PUserWorkArea; It points to the TUserWorkArea record. The record contains fields defining the barcode symbol. See also the "TUserWorkArea" record.