We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there a way to easily take a section of a Pimage 1000x1000 pixels and cut out a 100x100 section and put it into a smaller Pimage that is 100x100? I have done it using direct access with for loops and image.pixels(location) but wonder if i can use existing functions in processing to do it faster? Thks
Answers
Doubt it's any faster but copy() is more convenient: https://Processing.org/reference/PImage_copy_.html
Another option would be to use get(), seems much faster than copy(). (Similiar to writing your own loops).
But it is not as flexible, since it creates a new PImage.