List of utility methods to do BufferedImage Deep Copy
BufferedImage | deepCopy(BufferedImage bi) deep Copy ColorModel cm = bi.getColorModel(); boolean isAlphaPremultiplied = cm.isAlphaPremultiplied(); WritableRaster raster = bi.copyData(null); return new BufferedImage(cm, raster, isAlphaPremultiplied, null); |
BufferedImage | deepCopy(BufferedImage bi) Deep clone a BufferedIamge ColorModel cm = bi.getColorModel(); boolean isAlphaPremultiplied = cm.isAlphaPremultiplied(); WritableRaster raster = bi.copyData(null); return new BufferedImage(cm, raster, isAlphaPremultiplied, null); |
BufferedImage | deepCopy(BufferedImage image) deep Copy return new BufferedImage(image.getColorModel(), (WritableRaster) image.getData(), image.isAlphaPremultiplied(), null); |
BufferedImage | deepCopy(BufferedImage image) Make a deep copy of a buffered image ColorModel cm = image.getColorModel(); boolean isAlphaPremultiplied = cm.isAlphaPremultiplied(); WritableRaster raster = image.copyData(null); return new BufferedImage(cm, raster, isAlphaPremultiplied, null); |
BufferedImage | deepCopy(BufferedImage source) Returns a copy of a BufferedImage object. BufferedImage result; Graphics g; ColorModel cm; boolean isAlphaPremultiplied; WritableRaster raster; if (source.getType() == BufferedImage.TYPE_CUSTOM) { cm = source.getColorModel(); isAlphaPremultiplied = cm.isAlphaPremultiplied(); ... |