BCDrawCB
Customized Drawing (Callbacks)
ERRCODE BCDrawCB(t_BarCode *pBarCode, HDC hDC, RECT *pRectBounding)
Callback version of barcode draw function.
Call this function instead of BCDraw() if you want to use your own drawing routines (e.g. for generating a barcode on special devices or in special output formats).
fn_DrawRow is used for drawing the bars, see BCSetFuncDrawRow()
fn_DrawBar is used for drawing the bars, see BCSetFuncDrawBar()
fn_DrawText is used for drawing the human readable text, see BCSetFuncDrawText()
Note
BCDrawCB() can be used only with a developer license. Sample code is available on request: support@tec-it.com
Note
Call-backs are disabled in the demo-version of TBarCode. If you need to try it please contact TEC-IT for a temporary license key.
Parameters
| Parameter / type | Description |
|---|---|
[in] pBarCode |
Pointer to barcode structure. |
[in] hDC |
Device context handle (optional, Windows only). |
[in] pRectBounding |
Bounding rectangle (bar code size). If hDC is NULL, the unit is [0.001 mm]. The coordinates are transformed to an origin of (0,0). |
Return values
| Name | Description |
|---|---|
ERRCODE |
ErrOk (0) in case of success. Non-zero if error occurred. |