We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I seem to recall there was already a topic on this but I can't find it ... so what I want to do is loop through an array of pixels and make all the pixels above a certain brightness value transparent. How would I do this? Thanks!
Answers
Thanks! It seems to work, but not perfectly, on a video too ... most of the time it works but at times some of the bright pixels are not being turned transparent ... weird ...
You haven't said anything about video! [-(
If method read() is called under another Thread, its pixels[] is completely filled by the new arrived frame! :-@
Ah ok ... sorry :/
Uh, so my code look like this right now:
Seems correct. Method read() is called under the "Animation" Thread.
So it should just work. Dunno why it fails sometimes for ya according to what you've posted so far.