Here you can find the source of getBufferedImage(Image image)
public static BufferedImage getBufferedImage(Image image)
//package com.java2s; //License from project: Open Source License import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; public class Main { public static BufferedImage getBufferedImage(Image image) { BufferedImage bufferedImage = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB); Graphics2D g = bufferedImage.createGraphics(); g.drawImage(image, null, null);/*from w ww .j a va 2s .c om*/ // waitForImage(bufferedImage); return bufferedImage; } }