TBarCode Library 11 TBarCode Library 11

◆ BCSetDPI()

ERRCODE BCSetDPI ( t_BarCode * pBarCode,
DOUBLE dDPIHorz,
DOUBLE dDPIVert )

Sets user defined resolution.

Sets output resolution to be used in bar code drawing / calculation functions. If not set (default), the resolution of the available device context is used (e.g. screen resolution or printer resolution). Can be used to estimate the quality of a bar code for a specific output resolution (BCGetQuality()). For other purposes this function should be used careful, because bar code dimensions can change unexpectedly.

See also
BCGetDPIHorz(), BCGetDPIVert()
Parameters
[in]pBarCodePointer to barcode structure.
[in]dDPIHorzUser defined horizontal DPI (-1 ... reset to default).
[in]dDPIVertUser defined vertical DPI (-1 ... reset to default) ==> Parameter is currently not used.
Return values
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.

© 2026 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on for TBarCode Library 11 with doxygen 1.15.0