Here you can find the source of deepCopy(BufferedImage image)
public static BufferedImage deepCopy(BufferedImage image)
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; import java.awt.image.WritableRaster; public class Main { public static BufferedImage deepCopy(BufferedImage image) { return new BufferedImage(image.getColorModel(), (WritableRaster) image.getData(), image.isAlphaPremultiplied(), null); }//from ww w . j ava 2 s. co m }