ERRCODE BCSetMustFit ( t_BarCode pBarCode,
BOOL  bMustFit 
)

Checks if the barcode fits into the bounding rectangle.

This property means that the barcode must fit into the bounding rectangle during drawing. Background: When specifying a fixed module width the barcode width (not the width of the bounding rectangle) changes corresponding to the amount of data characters. In addition, "MustFit" verifies if the module width is less than 1 pixel (which is treated as error in this case) If "MustFit" is activated an error may be produced due to the above reasons during the BCDraw() method.

See also:
BCGetMustFit(), BCDraw()
Parameters:
[in] pBarCode Pointer to barcode structure.
[in] bMustFit 
  • true: Check if barcode fits into bounding rectangle will be enabled
  • false: Check if barcode fits into bounding rectangle will be disabled (the default)
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 Tue May 5 15:50:33 2009 for TEC-IT TBarCode Library 9.2 with doxygen 1.5.3