Java BufferedImage Deep Copy deepCopy(BufferedImage image)

Here you can find the source of deepCopy(BufferedImage image)

Description

deep Copy

License

Open Source License

Declaration

public static BufferedImage deepCopy(BufferedImage image) 

Method Source Code

//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
}

Related

  1. deepCopy(BufferedImage bi)
  2. deepCopy(BufferedImage bi)
  3. deepCopy(BufferedImage image)
  4. deepCopy(BufferedImage source)