Java Utililty Methods RenderedImage to BufferedImage

List of utility methods to do RenderedImage to BufferedImage

Description

The list of methods to do RenderedImage to BufferedImage are organized into topic(s).

Method

BufferedImagetoBufferedImage(RenderedImage image)
Converts an arbitrary image to a BufferedImage .
if (image instanceof BufferedImage) {
    return (BufferedImage) image;
ColorModel cm = image.getColorModel();
WritableRaster raster = cm.createCompatibleWritableRaster(image.getWidth(), image.getHeight());
boolean isRasterPremultiplied = cm.isAlphaPremultiplied();
Hashtable<String, Object> properties = null;
if (image.getPropertyNames() != null) {
...
BufferedImagetoBufferedImage(RenderedImage image)
Converts a RenderedImage into a BufferedImage.
if (image instanceof BufferedImage) {
    return (BufferedImage) image;
ColorModel colorModel = image.getColorModel();
int width = image.getWidth();
int height = image.getHeight();
WritableRaster raster = colorModel.createCompatibleWritableRaster(width, height);
boolean isAlphaPremultiplied = colorModel.isAlphaPremultiplied();
...