# Is there an easy way to get an image from a section of an image?

**URL:** <https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902>\
**Category:** Coding Questions\
**Created:** [May 15, 2022, 8:37pm UTC](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902 "2022-05-15T20:37:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntiViral\_Builder](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Post date:** [May 15, 2022, 8:37pm UTC](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902/1 "2022-05-15T20:37:50Z")

</div>

I would like to be able to do this quickly and not have to go through each pixel to transfer them.

---

<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:** [May 15, 2022, 8:54pm UTC](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902/2 "2022-05-15T20:54:50Z")

</div>

Hello @AntiViral_Builder ,

One of the methods here should get() you started:

> **[Reference](https://processing.org/reference/PImage.html)**
>
> Datatype for storing images. Processing can display .gif, .jpg, .tga, and .png images. Images may be displayed in 2D and 3D space. Before an image is used, it must be loade…

`:)`

---

<div class="post-metadata">

**Author:** ![AntiViral\_Builder](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Post date:** [May 15, 2022, 9:07pm UTC](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902/3 "2022-05-15T21:07:31Z")

</div>

I can do this stuff.

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 15, 2022, 9:27pm UTC](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902/4 "2022-05-15T21:27:43Z")

</div>

Hi

Is this what you want??

> [@Possible at all? Create path on image, generate cutting boxes, separate each box](https://discourse.processing.org/t/possible-at-all-create-path-on-image-generate-cutting-boxes-separate-each-box/13756):
>
> Dear all, just getting started with processing and wondering if this is possible within processing? I haven’t succeeded doing this in photoshop. I need to dissolve an image into smaller party while each part should be an individual layer (or entity) as I must re-arrange those smaller entities later. So the idea is to draw a path onto an image. Then have cutting boxes follow the path and finally store each cutting box into a new layer/entity. Anyone ideas how to solve this? with processing? …
