0

I want to capture a Desktop image through Coding most probably in Java?? How to achieved it ??

Bhagya
  • 61
  • 1
  • 2
  • 4

1 Answers1

3

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.

Paul Blessing
  • 3,815
  • 2
  • 24
  • 25
  • Ok,How to capture desktop image On Android Emulator ?? Because Android does not support AWT classes – Bhagya Feb 06 '11 at 05:30