From d5c7f19dcaca39ef44143cf20c66827556d1d2f6 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 10 Oct 2011 18:09:01 +0000 Subject: [PATCH] Another example update --- .../GettingStartedCaptureMac.pde | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCaptureMac.pde b/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCaptureMac.pde index d8b799a55..f63820241 100644 --- a/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCaptureMac.pde +++ b/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCaptureMac.pde @@ -21,20 +21,21 @@ void setup() { 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 +")"); - } + + // 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() {