List of utility methods to do RenderedImage to BufferedImage
BufferedImage | toBufferedImage(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) { ... |
BufferedImage | toBufferedImage(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(); ... |