# How to copy clipped rect of an image to another filename?

**URL:** <https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054>\
**Category:** Beginners\
**Created:** [October 3, 2022, 9:59am UTC](https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054 "2022-10-03T09:59:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 3, 2022, 9:25pm UTC](https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054/8 "2022-10-03T21:25:03Z")

</div>

Hello,

> [@bhaskar1955](#):
>
> I think with correct syntax of get() and Pimage.save() I can achieve desired result.

You certainly will!

References:  
[PImage / Reference / Processing.org](https://processing.org/reference/PImage.html) \< get() and save() for a _PImage_ are in there!

There are two references for get():

- [https://processing.org/reference/get\_.html](https://processing.org/reference/get_.html) \< Use for image on sketch canvas!
- [https://processing.org/reference/PImage\_get\_.html](https://processing.org/reference/PImage_get_.html) \< Use for PImage directly!

If you want to explore further there is a tutorial on _Images and Pixels_ and _Render Techniques_

`:)`

---

_[View the full topic](https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054)._
