DOUBLE BCGetBarcodeHeight ( t_BarCode pBarCode,
LPRECT  pRect,
HDC  hDC,
e_MUnit  eUnit 
)

Returns the height of the barcode symbol.

Returns the total barcode height in the specified measurement unit. Use BCGetBarcodeSize() if you also need the width of the symbol. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle.
Relevant for 2D or Multi-Row Symbologies (e.g. PDF417, Data Matrix, RSS Stacked...): If a row height has been set, the bar code height depends on the adjusted row height and the number of rows in the symbol. For some symbologies also the module width is relevant for the symbol height.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are:

  • eMUDefault ... logical units of the given device context.
  • eMUMM ... millimeters
  • eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
    See also:
    BCGetBarCodeSize(), BCGetBarcodeWidth(), BCSetModWidth(), BCSet_PDF417_RowHeight()
    Note:
    Windows only

    Call this function after BCCreate()

    Parameters:
    [in] pBarCode Pointer to barcode structure.
    [in] pRect Bounding rectangle.
    [in] hDC Device context handle.
    [in] eUnit Measurement unit.
    Return values:
    LONG Height of barcode symbol


© 2008 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Tue May 5 15:50:33 2009 for TEC-IT TBarCode Library 9.2 with doxygen 1.5.3