SaveFrame specific area

Hey everyone,
I’m new to Processing and coding in general and I have to code something for uni in the form of a photobooth that utilizes the webcam and has a recording function. I use the following code for that:

void keyPressed() {
  if (key == 's') {
    saveFrame ("images/glitchBild_######.png");

Now my question: I wanted to ask if recording only a certain part of the screen is possible. The full size of the program is (1425, 850) but the webcam sits at (75,75) at 640length and 480height and I would like only the image of the webcam to be saved.

I hope my question is understandable and I wish everyone a nice day!

1 Like

just found the answer in this thread!

2 Likes