Specifies the distance between the top and bottom of a barcode symbol in pixels.
property BarcodeHeight: Integer;
Specifies the distance between the top and bottom of a barcode symbol in pixels. If the quiet zones are represented (the ShowQuietZone property is set to true), the top quiet zone and the bottom quiet zone are included. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
For the TBarcode2D_CCA, TBarcode2D_CCB, and TBarcode2D_CCC components, if the Linear property is set, the 2D symbol and the linear symbol are assembled to generate an EAN.UCC composite barcode symbol, the linear component is included in the composite barcode symbol. And the property specifies the height for entire EAN.UCC composite barcode symbol not for the 2D symbol. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
The property is set using the following formula:
When the property Stretch is set to false:
The BarcodeHeight property will be ignored, and the height of barcode symbol will be calculated based on the Module property value.
You can get the height value by using the Size method.
When the property Stretch is set to true:
If the BarcodeHeight property value is equal to zero:
When the Orientation property is set to "boLeftRight" or "boRightLeft", the TopMargin property value will be subtracted from the height of the TImage, TQRImage, or TQRGzImage control that's specified by the Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
When the Orientation property is set to "boTopBottom" or "boBottomTop", the LeftMargin property value will be subtracted from the width of the TImage, TQRImage, or TQRGzImage control that's specified by the Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
If the BarcodeHeight property value is greater than zero:
The barcode symbol will be reduced/stretched to fit this height value. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
If the BarcodeHeight property value is less than zero:
When the Orientation property is set to "boLeftRight" or "boRightLeft", the TopMargin property value and the absolute value of the negative height will be subtracted from the height of the TImage, TQRImage, or TQRGzImage control that's specified by the Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value (it specifies the bottom margin of the barcode symbol, -1 denotes the bottom margin is 1, -2 denotes the bottom margin is 2, ...). See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
When the Orientation property is set to "boTopBottom" or "boBottomTop", the LeftMargin property value and the absolute value of the negative height will be subtracted from the width of the TImage, TQRImage, or TQRGzImage control that's specified by the Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value (it specifies the right margin of the barcode symbol, -1 denotes the right margin is 1, -2 denotes the right margin is 2, ...). See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):
For the TBarcode2D_CCA, TBarcode2D_CCB, and TBarcode2D_CCC components, when the linear component is TBarcode1D_UPCA, TBarcode1D_UPCE, TBarcode1D_UPCE0, TBarcode1D_UPCE1, TBarcode1D_EAN8, TBarcode1D_EAN13, or TBarcode1D_EAN128, and its human readable text is represented, the human readable text and the vertical spacing between the text and linear symbol are included in the value of BarcodeHeight property. If the human readable text exceeds the linear barcode symbol in vertical direction, the excess is included too. See diagram (the SpaceColor property is set to clSilver in order to accentuate the quiet zones):