Java BufferedImage to Image BufferedImageToImage(BufferedImage image)

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

Description

Buffered Image To Image

License

Open Source License

Declaration

public final static Image BufferedImageToImage(BufferedImage image) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Image;

import java.awt.image.BufferedImage;

public class Main {

    public final static Image BufferedImageToImage(BufferedImage image) {
        return image.getScaledInstance(image.getWidth(), image.getHeight(), Image.SCALE_DEFAULT);
    }//from  w  w  w  .ja va 2  s .co  m
}