what i’m trying to do is to is:
- get pixels of the webcam into units of (10 x 10 px for instance)
- put the 10 x 10 blocks into a vector i think
- rearrange those blocks randomly and draw it in a grid.
anybody any idea how to do this
see example below:
what i’m trying to do is to is:
anybody any idea how to do this
see example below:
You could do this dynamically using drawSubsection();
ofImage_::drawSubsection(float x, float y, float w, float h, float sx, float sy);
This way you don’t need to copy pixels manually, just draw the bits you want where you want.
thanks for your reply, does drawSubsection work with a webcam livefeed?
yes you can usevideoGrabber.getTexture().drawSubsection(float x, float y, float w, float h, float sx, float sy);