0 Replies Latest reply on May 9, 2015 7:18 AM by 2ea08259-a28b-4f61-b387-5a29802e24cf

    How to make resizable screencapturer using Robot in Java?


      I am new to java. I am trying to make a simple screencapture and display program.

      I am using robot class to capture a particular portion of the screen and display it in a separate frame.

      However I need to be able to resize the area of screencapture. I searched but I dint find any solution wherein I can do so.

      I am using this command for capturing the screen

      BufferedImage buff = robot.createScreenCapture(new Rectangle(0,0,1300,750)); // x-coord, y-coord, width, height

      But I couldn't find a way to make the rectangle re-sizable.