We are about to switch to a new forum software. Until then we have removed the registration on this forum.
loadBytes() loads a file into a byte array. Is it possible to read the real-time processing of an image (or movie) from memory? I am looking to add some glitch to it, and I am looking for a way to do it.
Answers
make a call to
loadPixels();
it will copy contents of the frame buffer to an array called pixels[i]
hope this helps
Like zumbaree wrote, you can use loadPixels()/updatePixels() or copy() (nice for glitches, shown in the example code below) or, in case you want better performance, make use of Processings PShader class.
Example code:
Since the text processor hates links (or likes them too much), please insert h t t p : / / (without the spaces) before upload.wikimedia.org.