Loads an image from an specified resource.
Parameters: image - the resource name throws: JRException -
loadImageDataFromAWTImage
public static byte[] loadImageDataFromAWTImage(Image image, byte imageType) throws JRException(Code)
Encoding the image object using an image encoder that supports the supplied image type.
Parameters: image - the java.awt.Image object to encode Parameters: imageType - the type of the image as specified by one of the constants defined in the JRRenderable interface the encoded image data