int WINAPI Bar2D2f(LPSTR bufin,LPSTR szFileName);
where
bufin is a pointer to a null-terminated string containing the barcode data. (Group 2 calls cannot include ASCII 0 in a data stream.)
szFileName is a pointer to a null-terminated string containing the fully qualified file name into which the barcode image will be stored. (This may be obtained from a dialog by calling ImageFileName().)
Calls to Bar2D2f copy an image of the barcode to the file pointed to by szFileName, using the barcode data in the string pointed to by bufin and the properties specified in the embedded BARCODE2D structure. The call returns an error code in the event of an error, otherwise it returns 0.
The szFileName string must contain the full pathname of the file required, including one of the permitted file extension which specify the file type. The allowed extension are:
.WMF – Windows metafile
.BMP – Windows bitmap
.PCX –
Paintbrush file
.EPS – Encapsulated PostScript
.PNG – Portable Network
Graphics
.GIF – GIF file (requires Unisys GIF licence)
Note that graphic files based on bitmaps should have a target resolution specified by calling SetBitmapScale() before saving the file.
More: