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
simply save a frame(resolved) (Read 346 times)
simply save a frame(resolved)
Oct 29th, 2008, 4:29pm
 
I have video working, when I run the "getting started capture" it shows live video feed. but how do I capture a single frame on an event?

for example:
void draw() {
 if (cam.available() == true) {
   cam.read();
   image(cam, 160, 100);
if(x==1){
//capture current frame and save the image to harddrive
)
 }
}

I looked all through the video reference and didn't see anything, sorry if I missed something obvious
thanks
Re: simply save a frame
Reply #1 - Oct 29th, 2008, 4:57pm
 
http://processing.org/reference/saveFrame_.html

Wink
Re: simply save a frame
Reply #2 - Oct 29th, 2008, 5:12pm
 
seltar wrote on Oct 29th, 2008, 4:57pm:
http://processing.org/reference/saveFrame_.html

Wink

*slaps forehead*

thanks seltar
Page Index Toggle Pages: 1