We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Offscreen Pixels[]
Page Index Toggle Pages: 1
Offscreen Pixels[] (Read 587 times)
Offscreen Pixels[]
Nov 9th, 2006, 6:40pm
 
I need to be able to analyze the pixels of an (off-screen) image, much the same way we can look at the pixels[] array for the current display.

Is there a way to convert a PImage to a pixels[] array?  Or to query the pixels of a PImage via a method call?

I suspect createGraphics() may be the solution, but I'm not sure.

Thanks!
Re: Offscreen Pixels[]
Reply #1 - Nov 9th, 2006, 6:54pm
 
Yikes!  I just think I found it: PImage has its own Pixels[] array.  I presume I can just use that.  Cool!

Damn, when I read the source and look at all that Processing goes through to do this magic, I'm amazed!

Page Index Toggle Pages: 1