ERRCODE BCGetOptimalBitmapSize ( t_BarCode pBarCode,
LPRECT  pRect,
LONG  nScaleX,
LONG  nScaleY 
)

Returns the optimal size of a bitmap for given bar code settings.

Returns the optimal size of a generated bitmap based on given bar code settings.

Note:
This function calculates the bar code size for a rotation of 0 degrees.
If a quiet zone is set, it is considered automatically by GetOptimalBitmapSize. But note that only quiet zones given in modules or pixels can be handled. The other units lead to an error because a device context would be needed for a proper bitmap size calculation. If you apply the results for a rotated bar code of 90° or 270° you have to exchange width and height.
Parameters:
[in] pBarCode Pointer to barcode structure.
[in,out] pRect [in] The size of the bounding rectangle (for barcode orientation of 0 degrees). [out] The size of the optimal bitmap.
[in] nScaleX horizontal scaling factor.
[in] nScaleY vertical scaling factor.
Return values:
ERRCODE ErrOk (0) in case of success. Non-zero if error occurred.

© 2008 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Thu Jun 30 16:34:48 2011 for TEC-IT TBarCode Library 10 with doxygen 1.6.2