Save an image from display window coordinates

How to save an image from the display window within coordinates? (Such as x > 0 && x < 100 && y > 100 && y < 200).

Check out the get() and save() functions

2 Likes

https://processing.org/reference/save_.html
Follow the examples from the processing reference.

That would save the whole display screen, I only want to save within the coordinates.

As Tony said, that’s where the get() function comes in play to get a certain section of an image.
https://processing.org/reference/get_.html

1 Like