Parameters:
String fileName,
String graphicsType,
int resolution,
int pixeladjust
Return type: ByteArrayOutputStream
This method creates a file (with the name specified in the fileName parameter) containing the barcode image of the specified resolution and of the graphics type specified by the graphicsType parameter. The pixeladjust parameter has the meaning described under drawBarcode().
The graphics types will depend on the platform on which the Java VM is running, and may be determined by obtaining the string array of available types using getGraphicsTypes(). On a Windows system the types available will include “eps”, “gif”, “jpeg” and “png”. EPS and GIF images will be monochrome.
Using an unsupported graphics type or attempting to create a file without write permission or an illegal file name will result in an IOException.
More: