Java tutorial
import java.awt.Image; import java.awt.Toolkit; import java.awt.image.BufferedImage; public class Main { public static void main(String[] argv) throws Exception { BufferedImage bufferedImage = new BufferedImage(200, 200, BufferedImage.TYPE_3BYTE_BGR); Image img = Toolkit.getDefaultToolkit().createImage(bufferedImage.getSource()); } }