# How to make and process a new image(distinct from the screen)?

**URL:** <https://discourse.processing.org/t/how-to-make-and-process-a-new-image-distinct-from-the-screen/22284>\
**Category:** Coding Questions\
**Created:** [June 30, 2020, 4:14pm UTC](https://discourse.processing.org/t/how-to-make-and-process-a-new-image-distinct-from-the-screen/22284 "2020-06-30T16:14:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SilverPrevail](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@SilverPrevail](https://discourse.processing.org/u/SilverPrevail)\
**Post date:** [June 30, 2020, 4:14pm UTC](https://discourse.processing.org/t/how-to-make-and-process-a-new-image-distinct-from-the-screen/22284/1 "2020-06-30T16:14:43Z")

</div>

I want to process a image with the functions like text() or rect(),circle() and put a part of the image in the screen with image.get();  
To explain a little more, I have a long text which I want to visualize at the screen. But it’s too long to fit the whole thing inside, so I want to make a image of it with text(), and cut the image with image.get() so it can be fit into the screen. The scroll bar will be used to control which part should be visible.

I remember a class that can be used like  
class f;  
f.size(200,400);  
f.circle(50,20,40);  
f.text("",30,30,30,30);  
but I can’t remember how to use it. Can someone tell me what to do?

I am not trying to create a new window or something, I just want to edit a image.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [July 1, 2020, 1:48am UTC](https://discourse.processing.org/t/how-to-make-and-process-a-new-image-distinct-from-the-screen/22284/2 "2020-07-01T01:48:47Z")

</div>

I think you are referring to [PGrapics](https://processing.org/reference/PGraphics.html).  
One thing I should mention is that text has an option with 5 parameters which limits the text to a bound area. You should check it out in the reference. If you want to actually have a scroll effect, the keyword to search in the forum is “panning” and you should get some hits that you can apply to your use case.

Kf
