awtrobot - Java print screen program -
i trying use robot
in java make image file of print screen. far have:
robot robot = new robot(); rectangle screenrect = new rectangle(toolkit.getdefaulttoolkit().getscreensize()); bufferedimage capture = new robot().createscreencapture(screenrect); imageio.write(capture, "bmp", new file("printscreen.bmp"));
but can't seem create file.
s/printscreen.bmp/"printscreen.bmp"
Comments
Post a Comment