ERRCODE BCSetOptResolution ( t_BarCode pBarCode,
BOOL  bOpt 
)

Optimize barcode resolution.

If this feature is activated, the module width will be adapted to the resolution of the output device by TBarCode. All bars/spaces of a barcode are computed in a way that only integer bar (space) widths are used. The barcode will not be larger than the bounding-rectangle. The total width of the barcode may shrink (compared to the Bounding rectangle). Keep care about the minimal size of the barcode! Using optimization the readability of the barcode is (quite) independent from the given resolution. Using this options is important for bitmap formats or for small output resolutions (e.g. screen or dot matrix printers).

Note:
Hints for saving the barcode in Postscript format (EPS Vector): If the default dpi-value is used (not explicitly set), the module width will be changed in order to correspond to default EPS 72 dpi raster width. The barcode width will be adjusted, so that the module width is a multiple of 1/72" (point). So the narrow bar width fits into the standard 72 dpi raster of Postscript / EPS. Needed if you want to convert the EPS output to a raster / bitmap image format in a second step (e.g. JPG used in web applications). Therefore you don't loose pixel information.

Does not work with the following barcode symbologies: Data Matrix, QR-Code

See also:
BCGetOptResolution()
Parameters:
[in] pBarCode Pointer to barcode structure.
[in] bOpt Optimize barcode for resolution.
  • true: Optimization will be enabled
  • false: Optimization 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