Bug 366 : capture.settings() changes boundaries of capture object
Last modified: 2006-09-26 10:13




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P5
Severity:
normal

 

Reporter:
hansi
Assigned To:
fry

Attachment Type Created Size Actions
Fix capture boundry change patch 2006-09-26 09:59 15.14 KB

Description:   Opened: 2006-06-30 08:08
When you call capture.settings() the boundaries of the capture object change (showing just a
tiny crop of the original image).

(bug occurs at least on intel macs)

--------------- Code that causes the bug:
import processing.video.*;


Capture capture;

void setup(){
size( 320, 240 );
capture = new Capture( this, 320, 240, 15 );
framerate( 15 );
}


void draw(){
capture.read();
image( capture, 0, 0 );
}


void mousePressed(){
capture.settings();
}



--------------- Code that could fix the bug:
(inside capture.java)
public void settings() {
[ ... ]
+ QDRect bounds = channel.getBounds();
capture.stop();
channel.settingsDialog();
+ channel.setBounds( bounds );
[ ... ]
Additional Comment #1 From fry 2006-07-05 09:47
not yet verified, but i'll check into it.
Additional Comment #2 From hansi 2006-09-26 09:59
edit]
Fix capture boundry change

This should fix the bug, the file is based on the subversion code from 26.
Sept.

It's just three tiny changes, I marked them with /** CHANGES HERE */
Additional Comment #3 From fry 2006-09-26 10:13
excellent, thanks very much. i've applied the change for 0116.