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.
Page Index Toggle Pages: 1
Question about Capture syntax (Read 375 times)
Question about Capture syntax
Dec 2nd, 2009, 10:32pm
 
Hi,

I have recently started learning Processing and I'm loving it. One quick question though, when I use capture like:
 video1 = new Capture(this,320,480,12);
inside a class that I make i get an error saying "The constructor Capture(filename.className,int, int, int) is not defined"

I suspect it is because Capture expects a PApplet object as the first argument, but I'm not able to get how to get around this?

Please tell me how to use this function in a class that I have made instead of inside setup.

Many Thanks.
Page Index Toggle Pages: 1