g.drawImage(image, 0, 0, null);
}
// Write the image to the output stream
if ("image/jpeg".equals(mimeType)) {
JPEGImageEncoderImpl j = new JPEGImageEncoderImpl(os);
j.encode(rendImage);
}
else {
throw new IOException(JavaUtils.getMessage("jpegOnly", mimeType));
}
} // saveImage