Inesoft
PrintCE SDK EVC++ |
int PDC_DrawMSI(
HDC hPrDC,
LPCTSTR str,
int pos_x,
int pos_y,
BOOL add_text,
int checksum_type,
int thickness
);Parameters
hPrDC
[in] printer DC (Device Context).
str
[in] string to be "bar coded".
pos_x, pos_y
[in] coordinates on the page where the bar code will be drawn (in pixels). If pos_x is a negative value then no bar code is actually drawn and actual width of this bar code is returned. If pos_y is a negative value then no bar code is actually drawn and actual height of this bar code is returned.
add_text
[in] if True - draws the string below the bar code. If FALSE, draws only the bar code.
checksum_type
[in] the type of checksum. May be:
0 - Modulo 10 checksum.
1 - Modulo 10 checksum followed by Modulo 10 checksum.
2 - Modulo 11 checksum followed by Modulo 10 checksums.thickness
[in] bar code bar widths.
0 - smallest
1 - middle size
2 - widest.
Return Values
Width of the bar code in pixels, or height of the bar code in pixels (if pos_y is a negative value).
© 2009 Inesoft. All rights reserved.