mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix Capture constructors
This commit is contained in:
@@ -13,7 +13,22 @@ Throwing out the baby with the bathwater.
|
||||
|
||||
[ changes ]
|
||||
|
||||
+ Changing key command to instead use ctrl/cmd-alt-left/right,
|
||||
+ Changed the constructors for the Capture class to be more consistent
|
||||
with the rest of the video library. The following constructors:
|
||||
Capture(PApplet parent, int width, int height)
|
||||
Capture(PApplet parent, int width, int height, int rate)
|
||||
Capture(PApplet parent, String name, int width, int height)
|
||||
Capture(PApplet parent, String name, int width, int height, int rate)
|
||||
have been changed to:
|
||||
Capture(PApplet parent, int width, int height)
|
||||
Capture(PApplet parent, int width, int height, int rate)
|
||||
Capture(PApplet parent, int width, int height, String name)
|
||||
Capture(PApplet parent, int width, int height, String name, int rate)
|
||||
This version is not particularly consistent:
|
||||
Capture(PApplet parent, int width, int height, int rate)
|
||||
though we'll be leaving it in because it was used so heavily.
|
||||
|
||||
+ Changing key command to instead use ctrl/cmd + alt + left/right,
|
||||
identical to Firefox on Mac, PC and Linux. Also fixes a bug
|
||||
that caused French keyboards to have problems since 0123.
|
||||
http://dev.processing.org/bugs/show_bug.cgi?id=480
|
||||
|
||||
@@ -16,7 +16,8 @@ X or the 1.5 versions:
|
||||
X http://java.sun.com/update/1.5.0/jinstall-1_5_0_03-windows-i586.cab
|
||||
X PDE does not refresh code when using an External Editor
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=515
|
||||
X change framerate to frameRate inside Capture
|
||||
X change constructors for Capture, also framerate to frameRate
|
||||
_ need to update reference
|
||||
|
||||
_ need to add reference for moviemaker
|
||||
|
||||
|
||||
@@ -106,15 +106,15 @@ public class Capture extends PImage implements Runnable {
|
||||
|
||||
|
||||
public Capture(PApplet parent, int requestWidth, int requestHeight) {
|
||||
this(parent, null, requestWidth, requestHeight, 30);
|
||||
this(parent, requestWidth, requestHeight, null, 30);
|
||||
}
|
||||
|
||||
public Capture(PApplet parent, int reqWidth, int reqHeight, int frameRate) {
|
||||
this(parent, null, reqWidth, reqHeight, frameRate);
|
||||
this(parent, reqWidth, reqHeight, null, frameRate);
|
||||
}
|
||||
|
||||
public Capture(PApplet parent, String name, int reqWidth, int reqHeight) {
|
||||
this(parent, name, reqWidth, reqHeight, 30);
|
||||
public Capture(PApplet parent, int reqWidth, int reqHeight, String name) {
|
||||
this(parent, reqWidth, reqHeight, name, 30);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,8 +135,8 @@ public class Capture extends PImage implements Runnable {
|
||||
* is defined in the host PApplet, then it will be called every
|
||||
* time a new frame is available from the capture device.
|
||||
*/
|
||||
public Capture(PApplet parent, String name,
|
||||
int requestWidth, int requestHeight, int frameRate) {
|
||||
public Capture(PApplet parent, int requestWidth, int requestHeight,
|
||||
String name, int frameRate) {
|
||||
this.parent = parent;
|
||||
this.name = name;
|
||||
this.frameRate = frameRate;
|
||||
|
||||
Reference in New Issue
Block a user