ERRCODE BC_MultiBC_CalculateLayout ( t_BarCode pBarCode,
HDC  hDC,
LPCRECT  pRect,
INT *  pnRequiredWidth,
INT *  pnRequiredHeight 
)

Calculates the layout for multiple barcodes.

Call this function before BCCreate() and BCDraw() if you want to render multiple barcodes. This function splits a barcode into multiple barcodes. It automatically determines the required number of barcodes and the layout, i. e. the number of rows and columns.

See also:
BCCreate(), BCDraw(), BCSaveImage()
Note:
This function call is a must, when you want to render multiple barcodes!
Parameters:
[in] pBarCode Pointer to barcode structure
[in] hDC GDI device context. Only relevant for GDI output.
[in] pRect Bounding rectangle, specified in the current mapping mode (GDI) or in 1/1000 millimeter (PS, PCL, images).
[out] pnRequiredWidth Required width of bounding rectangle. 0 indicates that the required width could not be calculated.
[out] pnRequiredHeight Required height of bounding rectangle. 0 indicates that the required width could not be calculated.
Return values:
ERRCODE ErrOk (0) in case of success. Non-zero if error occurred.
Note:
This function is only used in Multiple Barcodes mode.


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