I want to take a screenshot of a specific area in the sketch (in processing).
With save();
and saveFrame();
references I can't do it because they capture the whole area, but i just need a smaller specific are to capture. How to do it properly?
Check the Processing reference. There's a function called get
that may be called on PImages or the drawing screen itself. You don't mention whether you want to capture some weird shape or a rectangle, so I'll assume a standard rectangle. According to its documentation, what you want is:
Syntax: get(x, y, w, h)
Parameters: