It contains fields to specify the parameters (e.g. position, size, etc.) for the barcode symbol. It is defined in the pfmxBarcode2D unit.
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;
WOrigin: TPointF;
WDensityRate: Single;
end;
WCanvas: TCanvas; The target canvas that the barcode symbol will be represented on it.
WBarcode: string; The barcode text which will be encoded to the barcode symbol.
If you use the Barcode property, or use Draw, Size, DrawTo (Syntax 1), DrawToSize (Syntax 1), Print (Syntax 1), or PrintSize (Syntax 1) method, It's equal to the value of Barcode property.
If you use the DrawTo (Syntax 2), DrawToSize (Syntax 2), Print (Syntax 2), or PrintSize (Syntax 2) method, it is equal to their Barcode parameter value.
If you use the Data property, or use DrawTo (Syntax 3), DrawToSize (Syntax 3), Print (Syntax 3), and PrintSize (Syntax 3) methods, it's an empty string.
WBarColor: TAlphaColor; It's the color used by all bars (Stacked 2D barcode symbology and Linear 1D barcode symbology) or dark modules (Matrix 2D barcode symbology) in the barcode symbol.
WSpaceColor: TAlphaColor; It's the color used by all spaces (Stacked 2D barcode symbology and Linear 1D barcode symbology) or light modules (Matrix 2D barcode symbology) in the barcode symbol. Also the leading, trailing, top, and bottom quiet zones are represented using the color too.
WOpacity: Single; It's the transparency-level of entire barcode symbol, where 1 is not transparant at all, 0.5 is 50% see-through, and 0 is completely transparent.
WModule: Single; It's the module size in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used. See also the "Module" property.
WLeftInPixels: Single; It's the margin between the barcode symbol and the left side of the canvas in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used. If the quiet zones are represented, they are included in the barcode symbol. See also the "LeftMargin" property.
WTopInPixels: Single; It's the margin between the barcode symbol and the top side of the canvas in pixels (Draw, DrawTo) or dots (Print). The vertical resolution is used. If the quiet zones are represented, they are included in the barcode symbol. See also the "TopMargin" property.
WAngle: Single; It's the angle to rotate the barcode symbol anticlockwise, in degrees.
WShowQuietZone: Boolean; Denotes whether the leading, trailing, top and bottom quiet zones are represented. See also the "ShowQuietZone" property.
WMirror: Boolean; Denotes whether the barcode symbol is reversed right to left (horizontal mirror reversal). See also the "Mirrored" property.
WBarcodeData: TBytes; The barcode text which will be encoded to the barcode symbol, it's a byte array.
If you use the Barcode property, or use Draw, Size, DrawTo (Syntax 1), DrawToSize (Syntax 1), Print (Syntax 1), or PrintSize (Syntax 1) method, it is the UTF-8 byte sequences converted from the Barcode property value (the BOM isn't included, if you used the OnEncode event function, it's equal to its Data parameter value).
If you use the DrawTo (Syntax 2), DrawToSize (Syntax 2), Print (Syntax 2), or PrintSize (Syntax 2) method, it is the UTF-8 bytes sequence converted from their Barcode parameter value (the BOM isn't included, if you used the OnEncode event function, it's equal to its Data parameter value).
If you use the Data property, it's equal to the value of Data property. If you use DrawTo (Syntax 3), DrawToSize (Syntax 3), Print (Syntax 3), or PrintSize (Syntax 3) method, it is equal to their Data parameter value.
WBarcodeLength: Integer; It's the length of WBarcodeData feild's value by byte count.
WQuietZoneWidthInModules_Left: Integer; It's the width of leading quiet zone if it is represented, in modules. See also the "LeadingQuietZone" property.
WQuietZoneWidthInModules_Top: Integer; It's the height of top quiet zone if it is represented, in modules. See also the "TopQuietZone" property.
WQuietZoneWidthInModules_Right: Integer; It's the width of trailing quiet zone if it is represented, in modules. See also the "TrailingQuietZone" property.
WQuietZoneWidthInModules_Bottom: Integer; It's the height of bottom quiet zone if it is represented, in modules. See also the "BottomQuietZone" property.
WSymbolZoneWidthInModules: Integer; It's the height of entire barcode symbol before the barcode symbol is rotated, in modules. The quiet zones aren't included even if they are represented.
WSymbolZoneHeightInModules: Integer; It's the width of entire barcode symbol before the barcode symbol is rotated, in modules. The quiet zones aren't included even if they are represented.
WTotalWidthInPixels: Single; It's the height of entire barcode symbol before the barcode symbol is rotated, in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used. The quiet zones are included if they are represented.
WTotalHeightInPixels: Single; It's the width of entire barcode symbol before the barcode symbol is rotated, in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used. The quiet zones are included if they are represented.
WSymbolZoneOffsetInPixels_Left: Single; It's the horizontal offset from the upper-left corner of entire barcode symbol (the quiet zones are included if they are represented) to the upper-left of the barcode symbol (the quiet zones aren't included even if they are represented) before the barcode symbol is rotated, in in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used.
WSymbolZoneOffsetInPixels_Top: Single; It's the vertical offset from the upper-left corner of entire barcode symbol (the quiet zones are included if they are represented) to the upper-left of the barcode symbol (the quiet zones aren't included even if they are represented) before the barcode symbol is rotated, in in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used.
WAlpha: Single; It's the angle that the barcode symbol will be rotated, in radian.
WOrigin: TPointF; The coordinate of the upper-left corner of the barcode symbol after the barcode symbol is rotated, in pixels (Draw, DrawTo) or dots (Print). The horizontal resolution is used.