How can I get bitmap of the processing windows?

edited August 2015 in How To...

Hello! I'm very new to Processing,So I want to know is it possible for me to get the bitmap out of the processing window. I mean not only from the video source but the whole video that showing in the running window. Because I want to upload it to the server on the Internet.

Here is my code you can see it show the same 2 video in window

import processing.video.*;

Capture cam;

void setup(){
  size(1280,480);
  String[] cameras = Capture.list();
  cam = new Capture(this,640,480,cameras[1],30);
  cam.start();
}

void draw(){
  if(cam.available()){
    cam.read();
  }
  image(cam,0,0);
  image(cam,640,0);
}

Thank you!

Answers

Sign In or Register to comment.