Functions | |||||
| BOOL | BCGetDrawMode (t_BarCode* pBarCode) | ||||
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
| |||||
| e_DrawMode | BCGetDrawModeExt (t_BarCode* pBarCode) | ||||
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
| |||||
| ERRCODE | BCSetDrawMode (t_BarCode* pBarCode, BOOL bUseGDIRect) | ||||
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars. TBarCode normally draw bars in high quality mode that bases on specialized GDI-functionality. Some printer drivers do not handle this method correctly (invisible, too short bars or wrong clipping). If this happens activate the conventional method (bars are drawn as filled rectangles). The conventional method may result in decreased barcode quality for devices with low output resolution.
| |||||
| ERRCODE | BCSetDrawModeExt (t_BarCode* pBarCode, e_DrawMode eMode) | ||||
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars.
| |||||
| ERRCODE | BCSetDCConversion (t_BarCode* pBarCode, BOOL bConvertDC) | ||||
Activates or deactivates conversion of Windows GDI drawing context (DC). By default all DCs are internally converted, so that logical units are himetric (1/100 mm). This conversion can be turned off if the DC given to the drawing routines already uses himetrics as logical units. Or you can turn off this conversion to use a DC with custom scaling. \param[in] pBarCode Pointer to barcode structure. \param[in] bConvertDC TRUE if DC should be converted. FALSE if conversion should be turned off.
| |||||
| BOOL | BCGetDCConversion (t_BarCode* pBarCode) | ||||
Returns TRUE if Windows GDI device context (DC) conversion is activated. \param[in] pBarCode Pointer to barcode structure.
| |||||
| ERRCODE | BCDraw (t_BarCode* pBarCode, HDC hDC, RECT* pRect) | ||||
Draws barcode onto the given Windows device context. Draws the barcode onto the given device context. The coordinates of the bounding rectangle defines the barcode dimensions. The coordinates passed in pRect are interpreted in the current mapping mode of the device context. No special coordinate mapping is performed.
| |||||
Required include file: "tbarcode.h"
|
Draws barcode onto the given Windows device context. Draws the barcode onto the given device context. The coordinates of the bounding rectangle defines the barcode dimensions. The coordinates passed in pRect are interpreted in the current mapping mode of the device context. No special coordinate mapping is performed.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Returns TRUE if Windows GDI device context (DC) conversion is activated. \param[in] pBarCode Pointer to barcode structure.
| TRUE | DC conversion is activated. (This is the default setting). |
| FALSE | DC conversion is deactivated. ----------------------------------------------------------------------------. |
|
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
| true | Best performance method is used (drawing filled rectangles) |
| false | High quality method is used. This is the default. ----------------------------------------------------------------------------. |
|
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
|
Activates or deactivates conversion of Windows GDI drawing context (DC). By default all DCs are internally converted, so that logical units are himetric (1/100 mm). This conversion can be turned off if the DC given to the drawing routines already uses himetrics as logical units. Or you can turn off this conversion to use a DC with custom scaling. \param[in] pBarCode Pointer to barcode structure. \param[in] bConvertDC TRUE if DC should be converted. FALSE if conversion should be turned off.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars. TBarCode normally draw bars in high quality mode that bases on specialized GDI-functionality. Some printer drivers do not handle this method correctly (invisible, too short bars or wrong clipping). If this happens activate the conventional method (bars are drawn as filled rectangles). The conventional method may result in decreased barcode quality for devices with low output resolution.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
| © 2019 All rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
| Generated on Sat Jul 13 03:16:06 2019 for TBarCode Library 11 with doxygen 1.1.5 |