ERRCODE BCSetModWidthW ( t_BarCode pBarCode,
LPCWSTR  szModWidth 
)

Sets a fixed module width (value is passed as string [0.001 mm]).

The module width is defined as the width of the smallest element (bar or space) a barcode is using. Values are specified is 1/1000 mm. If the module width is not set explicitly (default), the module width is automatically adapted to the object size (Bounding rectangle) and the amount of data to be encoded. If a value is set, the width of the modules and therefore of the whole barcode can be controlled (this may also influence the readability!). If set, the barcode width depends on the amount of data encoded in the barcode. For most barcode symbologies the module width should not fall below 0.19 mm. When drawing (Paint) the size of the bounding rectangle must be wide enough to avoid clipping.

See also:
BCSetModWidthN()
Note:
This method expects that the required module width is converted into a string [1/1000 mm]!
Parameters:
[in] pBarCode Pointer to barcode structure.
[in] szModWidth Module width [1/1000 mm] (reset to default = "-1").
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