Examples for Processing (BETA) version 127+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.
Save One Image
The save() function allows you to save an image from the display window. In this example, save() is run when a mouse button is pressed. The image "line.tif" is saved to the same folder as the sketch's program file.