Is there any API in java that takes to inputs as 2 coordinates and takes a snap sho开发者_StackOverflow中文版t of screen marked by that co-ordinates? I want to API to return IMAGE format.
Yes, there is java.awt.Robot
.
Is there any API in java that takes to inputs as 2 coordinates and takes a snap shot of screen marked by that co-ordinates? ..
Use Robot.createScreenCapture(Rectangle).
..I want to API to return IMAGE format.
What is IMAGE format? ImageIO.write(RenderedImage, String, File) will write in GIF, JPEG & PNG formats. Further formats are offered by JAI.
精彩评论