BarCoded3

Calls to BarCoded3 return a handle to a device independent bitmap for a device of specified resolution

Int WINAPI BarCoded3(HANDLE hInstance, LPRECT lpRectin, int res, LPBAR bc, LPLOGFONT lpLogFontIn, LPHANDLE &hbm)

hInstance is the instance handle of the calling application or 0.

lpRectIn is a long pointer to a rectangle that is the destination rectangle for the barcode image (with coordinates in units of 0.01 mm).

res is the resolution in dpi of the target device

lpLogFontIn is a long pointer to a LOGFONT structure filled with information about the font with which any text will be displayed on the barcode.  The font height will be treated as Points and treated as positive.

bc is a BARCODE structure - the LPBAR cast is required.

hbm is a HBITMAP handle that will contain the handle of the device independent bitmap on return.

Note that this call can easily generate barcodes that do not scan if the barcode is created too small to be accommodated on the resolution specified.

The user is responsible for destroying the bitmap when it is no longer required.

 

More:

Barcodeudf