How to divide a image/video into multiple pieces?

How can I break a image of video into multiple pieces? I want to do this with camera capture in the end. Any advice is welcome. Thank you.

So something like this:

in general look at

  • img.get() with 4 parameters : x,y and width and height

see Reference / Processing.org

3 Likes