Inesoft PrintCE SDK EVC++
PDC_DrawUPCA

Draws UPC-A type barcode.
String should contain 11 numbers. 2-Digit or 5-Digit Supplemental strings are also supported (see description of add_str parameter).

int PDC_DrawUPCA(
    HDC hPrDC,
    LPCTSTR str,
    LPCTSTR add_str,
    int pos_x,
    int pos_y,
    BOOL add_text,
    int thickness
);

Parameters

hPrDC

[in] printer DC (Device Context).

str

[in] строка для кодирования.

add_str

[in] 2-Digit or 5-Digit supplemental string. In the case when no add_str is needed pass NULL value or empty string.

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.

thickness

[in] bar code bar widths.
   0 - smallest
   1 - middle size
   2 - widest.



Return Values

ширина баркода в пикселях, либо высота баркода в пикселях (если параметр pos_y меньше нуля).

 

 


© 2009 Inesoft. All rights reserved.