Java Utililty Methods BufferedImage Deep Copy

List of utility methods to do BufferedImage Deep Copy

Description

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

Method

BufferedImagedeepCopy(BufferedImage bi)
deep Copy
ColorModel cm = bi.getColorModel();
boolean isAlphaPremultiplied = cm.isAlphaPremultiplied();
WritableRaster raster = bi.copyData(null);
return new BufferedImage(cm, raster, isAlphaPremultiplied, null);
BufferedImagedeepCopy(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);
BufferedImagedeepCopy(BufferedImage image)
deep Copy
return new BufferedImage(image.getColorModel(), (WritableRaster) image.getData(),
        image.isAlphaPremultiplied(), null);
BufferedImagedeepCopy(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);
BufferedImagedeepCopy(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();
...