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 & HelpSyntax Questions › Updating old code
Page Index Toggle Pages: 1
Updating old code (Read 427 times)
Updating old code
Apr 27th, 2006, 6:22am
 
Hello,

I'm triyng to update an old video aplication.
Where I had:

beginVideo(320, 240, 15);
OldFrame = video.copy();
VideoCopy = video.copy(320,240);

I've tryed using the new copy() and get() :

video = new Capture(this, source, 320, 240, 15);
OldFrame.copy(video, 0,0,320,240,0,0,320,240);
VideoCopy.copy(video, 0,0,320,240,0,0,320,240);

but both are PImage methods and don't seem to work with a video source. I wonder how to do that now.

many thanks.

Re: Updating old code
Reply #1 - Apr 27th, 2006, 3:02pm
 
both Capture and Movie are PImage objects, so you can work on them the same way you would any other PImage. perhaps you're not using loadPixels and updatePixels properly?
Re: Updating old code
Reply #2 - Apr 27th, 2006, 10:54pm
 
Thanks, I was not using them at all..
Page Index Toggle Pages: 1