Source Code : Creating a buffered image using Component.createImage().
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Creating a buffered image using Component.createImage().
//use only if the component is visible on the screen.
//It returns buffered images that do not support transparent pixels.
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
public class Main {
public static void main(String[] argv) throws Exception {
JFrame f = new JFrame();
f.setVisible(true);
int width = 300;
int height = 500;
BufferedImage bimage = (BufferedImage) f.createImage(width, height);
if (bimage == null) {
System.out.println("component is not visible on the screen");
}
}
}
Thank with us