# How to take frame not from all window

**URL:** <https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683>\
**Category:** Beginners\
**Created:** [February 24, 2019, 9:21am UTC](https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683 "2019-02-24T09:21:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grisha](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Grisha](https://discourse.processing.org/u/Grisha)\
**Post date:** [February 24, 2019, 9:21am UTC](https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683/1 "2019-02-24T09:21:47Z")

</div>

How to take frame not from all window? I need to save only one part of my window .

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [February 24, 2019, 9:24am UTC](https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683/2 "2019-02-24T09:24:53Z")

</div>

[Processing.org/reference/get\_.html](http://Processing.org/reference/get_.html)

---

<div class="post-metadata">

**Author:** ![Abel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/abel/32/3289_2.png) [@Abel](https://discourse.processing.org/u/Abel)\
**Post date:** [February 26, 2019, 8:48am UTC](https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683/3 "2019-02-26T08:48:45Z")

</div>

Hey! 😊 Here is an example if you’d like.

```auto
void setup () {
  size(400, 400);
  background(255);
}
void draw () {
  strokeWeight(random(30));
  stroke(random(255), random(255));
  point(random(width), random(height));
  
  if(millis() > 3000) {
    PImage section = get(20, 20, 300, 200);
    section.save("/get.png");
    println("Saved");
    noLoop();
  }
}

```

Hope you find it helpful. 🤗
