Returns the horizontal width and vertical height of a rotated barcode symbol that's displyed in the TImage, TQRImage, or TQRGzImage control specified in the Image property, in pixels.
function Size(var Width, Height, SymbolWidth, SymbolHeight: Integer): Boolean; virtual;
The method returns the horizontal width and vertical height of the rotated barcode symbol that is displyed in the TImage, TQRImage, or TQRGzImage control specified in the Image property, in pixels.
Width: Integer; Returns the horizontal width of the rotated barcode symbol that's displyed in the TImage, TQRImage, or TQRGzImage control specified in the Image property, in pixels.
Before rotation, if the human readable text is displayed, both the width of human readable text and the height of the human readable text (including its vertical spacing) will be consulted. Otherwise, they will not be consulted. Note, if the human readable text is displayed and it exceeds the barcode symbol in horizontal or vertical direction, the excess is included.
For TBarcode1D_UPCA, TBarcode1D_UPCE, TBarcode1D_UPCE0, TBarcode1D_UPCE1, TBarcode1D_EAN2, TBarcode1D_EAN5, TBarcode1D_EAN8, and TBarcode1D_EAN13 barcode components, if the human readable text is displayed, and the TextAlignment property is set to taCustom, the width of quiet zone marks and their horizontal spacing (LeftQuietZoneSpacing and RightQuietZoneSpacing) are included too.
For TBarcode1D_ITF6, TBarcode1D_ITF14, and TBarcode1D_ITF16 barcode components, the width of left and right bearer bars (BearerWidth), the height of top and bottom bearer bars (BearerWidth), the left spacing, and the right spacing are included too.
Height: Integer; Returns the vertical height of the rotated barcode symbol that's displyed in the TImage, TQRImage, or TQRGzImage control specified in the Image property, in pixels.
Before rotation, if the human readable text is displayed, both the width of human readable text and the height of the human readable text (including its vertical spacing) will be consulted. Otherwise, they will not be consulted. Note, if the human readable text is displayed and it exceeds the barcode symbol in horizontal or vertical direction, the excess is included.
For TBarcode1D_UPCA, TBarcode1D_UPCE, TBarcode1D_UPCE0, TBarcode1D_UPCE1, TBarcode1D_EAN2, TBarcode1D_EAN5, TBarcode1D_EAN8, and TBarcode1D_EAN13 barcode components, if the human readable text is displayed, and the TextAlignment property is set to taCustom, the width of quiet zone marks and their horizontal spacing (LeftQuietZoneSpacing and RightQuietZoneSpacing) are included too.
For TBarcode1D_ITF6, TBarcode1D_ITF14, and TBarcode1D_ITF16 barcode components, the width of left and right bearer bars (BearerWidth), the height of top and bottom bearer bars (BearerWidth), the left spacing, and the right spacing are included too.
SymbolWidth: Integer; Returns the distance between the leading and trailing of the rotated barcode symbol that's displyed in the TImage, TQRImage, or TQRGzImage control specified in the Image property, in pixels.
Before rotation, if the human readable text is displayed, the width of human readable text will be consulted. Otherwise, it will not be consulted. Note, if the human readable text is displayed, and it exceeds the barcode symbol in horizontal direction, the excess is included.
For TBarcode1D_UPCA, TBarcode1D_UPCE, TBarcode1D_UPCE0, TBarcode1D_UPCE1, TBarcode1D_EAN2, TBarcode1D_EAN5, TBarcode1D_EAN8, and TBarcode1D_EAN13 barcode components, if the human readable text is displayed, and the TextAlignment property is set to taCustom, the width of quiet zone marks and their horizontal spacing (LeftQuietZoneSpacing and RightQuietZoneSpacing) are included too.
For TBarcode1D_ITF6, TBarcode1D_ITF14, and TBarcode1D_ITF16 barcode components, the width of left and right bearer bars (BearerWidth), the left spacing, and the right spacing are included too.
SymbolHeight: Integer; Returns the distance between the top and bottom of the rotated barcode symbol that's displyed in the TImage, TQRImage, or TQRGzImage control specified in the Image property, in pixels.
Before rotation, if the human readable text is displayed, the height of the human readable text and its vertical spacing (TextVSpacing) are included. If it exceeds the barcode symbol in vertical direction, the excess is included too.
For TBarcode1D_ITF6, TBarcode1D_ITF14, and TBarcode1D_ITF16 barcode components, the height of top and bottom bearer bars (BearerWidth) are included too.
See also the "Height" property.
If the method succeeds, the return value is true.
If the length of Barcode or Data (only for Delphi/C++ Builder 2009 or later) property value is invalid, the return value is false, corresponding to the OnInvalidLength or OnInvalidDataLength (only for Delphi/C++ Builder 2009 or later) event will occur.
If there is any invalid character in the Barcode or Data (only for Delphi/C++ Builder 2009 or later) property value, the return value is false, corresponding to the OnInvalidChar or OnInvalidDataChar (only for Delphi/C++ Builder 2009 or later) event will occur.
If the Image property is not set, the human readable text will not be consulted.
See diagram: