getGraphicImage()

Parameters:

String graphicsType,

int resolution,

int pixeladjust 

Return type: ByteArrayOutputStream

This method returns an “in-memory” graphic file image of the specified resolution and of the graphics type specified by the graphicsType parameter. If the resolution parameter is 0 then the standard Java 72 dpi resolution will be used.

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 will result in an IOException.

 

More:

getGraphicImageMono()