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.
Page Index Toggle Pages: 1
stop jmyron (Read 403 times)
stop jmyron
Nov 16th, 2007, 7:38pm
 
I am using the jmyron library to run a webcam, i want to click the mouse and display a jpg image that i have in the sketch folder instead of the webcam, i have put variable values to the size setup to change it for the display but jmyron is not letting me display the jpg image in that size. So I think I most stop the jMyron import somehow

here is my script:

import JMyron.*;

JMyron m;//a camera object

void setup(){
 int w=320;
 int h=240;
 size(m,h),240);
 m = new JMyron();//make a new instance of the object
 m.start(width,height);//start a capture at 320x240

 loadPixels();
}

void draw(){
 m.update();//update the camera view
 m.imageCopy(pixels);//draw image to stage
 updatePixels();

void mousePressed() {
int w=700;
int h=500;
frame.setSize (w,h);
pImage a;
a = loadImage ("x.jpg");
image(a, 100, 100, 320, 240);

how do i stop jmyron to affect the next display when i click the mouse?
Page Index Toggle Pages: 1