ERRCODE BCSetBarWidthReduction ( t_BarCode pBarCode,
LONG  nFactor 
)

Sets bar-width reduction in percent (Pixel-Shaving).

Specifies the reduction of the bar-widths. The width of a bar in the barcode is reduced by the given value in percent (with respect to the module width). This property is useful when printing on inkjet printers: On such printers the bars appear wider than specified because the ink spreads a little bit. You can compensate this effect by setting a bar-width reduction (also called "Pixel Shaving"). You have to play around to find suitable settings because this effect depends on the printer, on the used paper, and on the ink. The printed module-width is equal to the theoretically optimal module-width multiplied with (100-nFactor) / 100.

See also:
BCGetBarWidthReduction()
Parameters:
[in] pBarCode Pointer to barcode structure.
[in] nFactor Reduction in percent [0...100] (-1 ... reset to default).
Return values:
ERRCODE ErrOk (0) in case of success. Non-zero if error occurred.


© 2007 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Tue Nov 27 14:28:02 2007 for TEC-IT TBarCode Library 8.0.0 with doxygen 1.5.3