Method: DrawToSize - Syntax 2

Returns the horizontal width and vertical height of a rotated barcode symbol in logical dots or pixels. The barcode symbol is specified in the parameters of this method.

Syntax:

type

{ Defined in the pCore1D unit }

TDisplayText = (dtNone, dtBarcode, dtFullEncoded);

{ Defined in the pCore1D unit }

TTextAlignment = (taLeft, taCenter, taRight, taJustify, taLeftQuietZone, taCenterQuietZone, taRightQuietZone, taJustifyQuietZone, taCustom);

function DrawToSize(var TotalWidth, TotalHeight, SymbolWidth, SymbolHeight: Integer; Canvas: TCanvas; Barcode: string; AutoCheckDigit: Boolean; BarcodeTextDefine: TBarcodeTextDefine; Ratio: Double; Module: Integer = 0; Height: Integer = 0; Angle: Integer = 0; HDPI: Integer = 0; VDPI: Integer = 0): Integer; overload; virtual;

Description:

The method returns the horizontal width and vertical height of the rotated barcode symbol that is specified by parameters of this method, in logical dots or pixels.

Parameters:
Return:

See diagram:

DrawToSize (Syntax 2)

Note:

For Delphi 3, the method overload and default value of parameter aren't supported, so the method name is changed to DrawToSize2, and the parameters Module, Height, Angle, HDPI, and VDPI are required.

Contents