I have created a screen capture of the current screen ,but i want to capture the entire html page as image can any body help me. Here is the code of screen capture..
import java.io.*;
import java.awt.*;
import java.awt.image.*;
import javax.imageio.*;
class A
{
public static void main(String[] ar) throws Exception
{
Robot r=new Robot();
Dimension d=Toolkit.getDefaultToolkit().getScreenSize();
Rectangle rct=new Rectangle(0,0,d.width,d.height);
BufferedImage bimg=r.createScreenCapture(rct);
ImageIO.write(bimg,"jpeg",new File("D:/screen_capture.jpg"));
}
}