Look up the references for these:
They are self explanatory.
Thanks, @glv, but it is saving the entire frame. I want to save only the clipped portion of the image.
You must use the correct syntax for
get() to get a section of an image.
Find the reference for
get() and it will elaborate on this
The same applies for a PImage save.
As a beginner it is important to become familiar with the resources available to you.
Thanks a lot. I think with correct syntax of get() and Pimage.save() I can achieve desired result.
PImage new1 = oldImg1. get(30,200,60,60);
You certainly will!
Reference / Processing.org < get() and save() for a PImage are in there!
There are two references for get():
- https://processing.org/reference/get_.html < Use for image on sketch canvas!
- 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
Thanks and regards, @glv,
It worked well. I have achieved the desired result.
Soon I’ll present the synopsis of my undergoing App. I hope, you will guide me.
Thanks for everything.