FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Back  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Class   Capture
   
Name  

read()

   
Examples  
import processing.video.*; 
Capture myCapture; 
 
void setup() { 
  size(200, 200); 
  String s = "Logitech QuickCam Messenger-WDM"; 
  myCapture = new Capture(this, s, width, height, 30); 
} 
 
void draw() { 
  if(myCapture.available()) { 
    // Reads the new frame 
    myCapture.read(); 
  } 
  image(myCapture, 0, 0); 
} 
 

Description   Reads the current video frame.
   
Syntax  
cam.read()
   
Parameters  
cam   any variable of type Capture

   
Usage   Web & Application
   
 
 






   
 
Updated: Fri Jul 15 16:41:05 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info  
font>   dy> #000000" height="25">  rg/cc/Attribution" /> -->     Processing is an open project initiated by Ben Fry and Casey Reas     © Info   eativecommons.org/licenses/by-nc-sa/2.0/" /> -->     Processing is an open project initiated by Ben Fry and Casey Reas     © Info   Casey Reas et al. Casey Reas -->     Processing is an open project initiated by Ben Fry and Casey Reas     © Info   A versatile input provider, a popup window with a set of interactive