take a screenshot of arbitrary region of screen.
I found that we can take a screenshot by
But this example shows how to take a whole desktop screen.
I would like to draw a rectangle on desktop screen and take a screenshot only inside of this screen shot. Is it possible?
I think it's possible.
In the example, it use
grabWindowto get the pixmap of screen int
shootScreenslot. From the document, you can set a rectangle to specify where you want to grab.