I want to capture a Desktop image through Coding most probably in Java?? How to achieved 开发者_Go百科it ??
See the java.awt.Robot
class.
http://download.oracle.com/javase/6/docs/api/java/awt/Robot.html#createScreenCapture(java.awt.Rectangle)
Once you have a reference to the BufferedImage
object, you can use the ImageIO
class to write to a file.
精彩评论