# SaveFrame specific area

**URL:** <https://discourse.processing.org/t/saveframe-specific-area/43748>\
**Category:** Beginners\
**Tags:** homework\
**Created:** [January 24, 2024, 1:56pm UTC](https://discourse.processing.org/t/saveframe-specific-area/43748 "2024-01-24T13:56:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WormLover36](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/wormlover36/32/19276_2.png) [@WormLover36](https://discourse.processing.org/u/WormLover36)\
**Post date:** [January 24, 2024, 1:56pm UTC](https://discourse.processing.org/t/saveframe-specific-area/43748/1 "2024-01-24T13:56:12Z")

</div>

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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![WormLover36](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/wormlover36/32/19276_2.png) [@WormLover36](https://discourse.processing.org/u/WormLover36)\
**Post date:** [January 24, 2024, 2:12pm UTC](https://discourse.processing.org/t/saveframe-specific-area/43748/2 "2024-01-24T14:12:36Z")

</div>

just found the answer [in this thread!](https://discourse.processing.org/t/saveframe-location-options-processing/8136)
