When called with a valid filename (including extension), this method copies the barcode image to a named disk file. The filename parameter must contain the fully qualified filename of the file which will receive the image. The specified directory path must exist. If the file exists it will be overwritten; if it does not exist it will be created. A return value of 0 indicates an error.
The extension of the filename specifies the type of file to be created. .WMF causes a Windows metafile image to be saved. .BMP specifies a Bitmap file. [Additional file types: .EPS specifies an encapsulated PostScript file (as a bitmap), .PCX a Paintbrush format bitmap, PNG Portable Network Graphics – ideal for Web use, and GIF CompuServe graphic file – the latter requiring a user licence from Unisys.]
Note that the Property SaveImageFile may also be set to a filename to initiate the saving of a graphic file.
Note that graphic files based on bitmaps should have a target resolution specified by calling SetBMScale() before saving the file.
More: