TBarCode Library 11  TBarCode Library 11
typedef ERRCODE ( TEC_CALLBACK fn_DrawHexagon)

Callback-function which is called instead of drawing a barcode row.

Data type for custom MaxiCode hexagon drawing callback-function.

Data type for custom MaxiCode finder drawing callback-function.

Data type for custom human readable text drawing callback-function.

XXX.

Data type for custom bar-drawing callback-function.

This callback function can be set with BCSetFuncDrawRow(). When set the drawing functions such as BCDraw(), BCPostscriptToFile, BCPCLToFile() etc. do not generate any output. Instead they call the active callback function.
When Windows-GDI drawing is started (with BCDraw()) then drawDC, targetDC contain the Windows device contexts (if set).
The parameters x, y, width, and height specify the extent of the barcode row. 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, y, width, and height use the current logical coordinate system and the logical units of these device contexts.
In your callback function you can use BCGetMetaData() to query the bars and spaces of the current row.

Note
A barcode row in this case is a single row of bars. Linear (1-dimensional) barcodes have exactly one row of bars. 2-dimensional barcodes can have more than one row of bars: In this case this callback function is called once for each row.
The user-defined data (customData) is shared by all callback functions.
The TBarCode Callback functions can be used only with a developer license. Sample code is available on request: suppo.nosp@m.rt@t.nosp@m.ec-it.nosp@m..com
Parameters
[in,out]customDataUser-defined data.
[in,out]barcodeThe handle of the barcode.
[in,out]drawDCThe device context.
[in,out]targetDCThe target device context.
[in]xThe left coordinate of the row.
[in]yThe top coordinate of the row.
[in]widthThe width of the row.
[in]heightThe height of the row.
Return values
ErrOkEverything went fine, and the drawing continues.
!=ErrOkSomething went wrong, the drawing function returns with the returned error value.
See also
BCGetFuncDrawRow(), BCSetFuncDrawRow(), BCDrawCB(), BCGetMetaData()

This callback function can be set with BCSetFuncDrawBar(). When set the drawing functions such as BCDraw(), BCPostscriptToFile, BCPCLToFile() etc. do not generate any output. Instead they call the active callback function. This function is called once for each bar.
When Windows-GDI drawing is started (with BCDraw()) then drawDC contains the Windows device contexts (if set). The variables x, y, width, and height specify the extent of the bar. 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, y, width, and height 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.
The TBarCode Callback functions can be used only with a developer license. Sample code is available on request: suppo.nosp@m.rt@t.nosp@m.ec-it.nosp@m..com
Parameters
[in,out]customDataUser-defined data.
[in,out]drawDCThe device context.
[in]xThe left coordinate of the row.
[in]yThe top coordinate of the row.
[in]widthThe width of the row.
[in]heightThe height of the row.
Return values
ErrOkEverything went fine, and the drawing continues.
!=ErrOkSomething went wrong, the drawing function returns with the returned error value.
See also
BCGetFuncDrawBar(), BCSetFuncDrawBar(), BCDrawCB()

This callback function can be set with BCSetFuncDrawText(). When set the drawing functions such as BCDraw(), BCPostscriptToFile, BCPCLToFile() etc. 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 barcode text. 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]customDataUser-defined data.
[in,out]drawDCThe device context.
[in]fontThe LOGFONTA structure that defines the font.
[in]xThe x-coordinate of the text. Depending on the alignment, the x specifies either the left, the center or the right coordinate of the text.
[in]yThe top coordinate of the text.
[in]alignmentThe horizontal alignment of the text. (The vertical alignment is always 'top'.)
[in]textThe output string.
[in]numberOfCharactersThe number of characters in text.
[in]drawAreaThe draw area for the text.
[in]textIndexThe index of given text. 0 ... means that given text is the human readable text. >0 ... means that given text is the extra text with given index [1 .. n].
Return values
ErrOkEverything went fine, and the drawing continues.
!=ErrOkSomething went wrong, the drawing function returns with the returned error value.
See also
BCGetFuncDrawText(), BCSetFuncDrawText(), BCDrawCB()

This callback function can be set with BCGetFuncDrawRing(). When set the MaxiCode finder 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 center of the ring. 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]customDataUser-defined data.
[in,out]drawDCThe device context.
[in]xThe x-coordinate (=horizontal) of the ring center.
[in]yThe y-coordinate (=vertical) of the ring center.
[in]rInnerThe radius of the inner margin of the ring.
[in]rOuterThe radius of the outer margin of the ring.
Return values
ErrOkEverything went fine, and the drawing continues.
!=ErrOkSomething went wrong, the drawing function returns with the returned error value.
See also
BCGetFuncDrawRing(), BCSetFuncDrawRing(), BCDrawCB()

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]customDataUser-defined data.
[in,out]drawDCThe device context.
[in]points_xAn array of the 6 x-positions of the hexagon corners (clockwise).
[in]points_yAn array of the 6 y-positions of the hexagon corners (clockwise).
Return values
ErrOkEverything went fine, and the drawing continues.
!=ErrOkSomething went wrong, the drawing function returns with the returned error value.
See also
BCGetFuncDrawHexagon(), BCSetFuncDrawHexagon(), BCDrawCB()

© 2019 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Thu Apr 11 2019 07:57:48 for TBarCode Library 11 with doxygen 1.8.8