Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Java Code For Screenshot capturing and saving in local System

Share this post!
 Vote this!

This Code snippet is used to capture Screenshot automatically and save it.

The below code performs the function of taking screenshots automatically making use of the class java.awt.Robot .The package java.awt contains all of the classes for creating user interfaces and for painting graphics and images.

The class java.awt.Toolkit helps in obtaining the screen size of the page and the class java.awt.Rectangle creates a rectangle with the same dimensions of the page.

The class java.awt.image.BufferedImage helps in creating a image containing pixels and colour similar to page and this does not involve the mouse cursor.

The taken screen shot can be stored in any mode depending on user's preference.

Thus this code automates the procedure of obtaining screenshots so the user may find it easier to know the status of the page .   more...

0 comments:

Post a Comment