Bar2Db and Bar2Dd

Calls to Bar2Db create the barcode bitmap image, returning an error code in the barcode2d structure in the event of an error. The hbm parameter and the return pointer provide a handle to the bitmap, which may be displayed, copied to the clipboard or stored in a file. The size of the image saved is determined by the values of the xunit and yunit parameters in the barcode structure, and in this case xunit and yunit are specified in pixels.

Note that the user should delete the bitmap when it is no longer required.

Calls to Bar2Dd are identical except that the handle is of a Device Independent Bitmap

 

LPHANDLE WINAPI Bar2Db(HANDLE hModule,  LPBAR2D bc, int iMult, LPHANDLE &hbm)

LPHANDLE WINAPI Bar2Dd(HANDLE hModule,  LPBAR2D bc, int iMult, LPHANDLE &hbm)

where

hModule is the Module handle of the calling application

bc is a BARCODE2D structure - the LPBAR2D cast is required.

iMult is a pixel-scaling factor that is not used in this release of the DLL and should be set to 0 or 1.

hbm is a HANDLE that will contain the handle of the bitmap image on return.

 

More:

Bar2Db2