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.