typedef ERRCODE( * fn_DrawHexagon)(VOID *customData, HDC drawDC, DOUBLE points_x[6], DOUBLE points_y[6])

Data type for custom MaxiCode hexagon drawing callback-function.

This callback function can be set with BCSetFuncDrawHexagon(). When set the MaxiCode hexagon drawing functions do not generate any output. Instead they call the active callback function.
When Windows-GDI drawing is started (with BCDraw()) then drawDC contains the Windows device contexts (if set). The variables x, and y specify the position of the center of the hexagon. If drawDC and targetDC are not set then these variables are given in millimeters, where the origin of the coordinate system is the upper, left coordinate of the barcode. The positive X-axis points to the right and the positive Y-axis points downwards.
If drawDC or targetDC are set then the parameters x and y use the current logical coordinate system and the logical units of these device contexts.

Note:
The user-defined data (customData) is shared by all callback functions.
Parameters:
[in,out] customData User-defined data.
[in,out] drawDC The device context.
[in] points_x An array of the 6 x-positions of the hexagon corners (clockwise).
[in] points_y An array of the 6 y-positions of the hexagon corners (clockwise).
Return values:
ErrOk Everything went fine, and the drawing continues.
!=ErrOk Something went wrong, the drawing function returns with the returned error value.
See also:
BCGetFuncDrawHexagon(), BCSetFuncDrawHexagon(), BCDrawCB()


© 2008 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Tue May 5 15:50:27 2009 for TEC-IT TBarCode Library 9.2 with doxygen 1.5.3