From 4abb6806e7645ff052580bbdb15dd4edbc4050ef Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 10 Oct 2011 21:02:59 +0000 Subject: [PATCH] Deleting old example --- .../GettingStartedCapture.pde | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCapture.pde diff --git a/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCapture.pde b/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCapture.pde deleted file mode 100644 index f63820241..000000000 --- a/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCapture.pde +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Getting Started with Capture. - * - * Reading and displaying an image from an attached Capture device. - */ - -import processing.video.*; - -Capture cam; - -void setup() { - size(640, 480); - - String[] cameras = Capture.list(); - - if (cameras.length == 0) { - println("There are no cameras available for capture."); - exit(); - } else { - println("Available cameras:"); - for (int i = 0; i < cameras.length; i++) { - println(cameras[i]); - } - - cam = new Capture(this, 320, 240, cameras[0]); - cam.start(); - - // You can get the list of resolutions (width x height x fps) - // supported capture device by calling the resolutions() - // method. It must be called after creating the capture - // object. - Resolution[] res = cam.resolutions(); - println("Supported resolutions:"); - for (int i = 0; i < res.length; i++) { - println(res[i].width + "x" + res[i].height + ", " + - res[i].fps + " (" + res[i].fpsString +")"); - } - } -} - -void draw() { - if (cam.available() == true) { - cam.read(); - image(cam, 0, 0); - // The following does the same, and is faster when just drawing the image - // without any additional resizing, transformations, or tint. - //set(0, 0, cam); - } -} \ No newline at end of file