Skip to content

Commit c6cc8ad

Browse files
committed
expected constructors for Movie class
Signed-off-by: Umair Khan <[email protected]>
1 parent 14c3924 commit c6cc8ad

File tree

1 file changed

+13
-1
lines changed
  • src/in/omerjerk/processing/video/android

1 file changed

+13
-1
lines changed
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
package in.omerjerk.processing.video.android;
22

3+
import processing.core.PApplet;
34
import processing.core.PConstants;
45
import processing.core.PImage;
56

67
public class Movie extends PImage implements PConstants {
78

8-
}
9+
public Movie(PApplet parent) {
10+
this(parent, -1, -1);
11+
}
12+
13+
public Movie(PApplet parent, int width, int height) {
14+
if (width == -1 || height == -1) {
15+
width = 720;
16+
height = 1280;
17+
}
18+
init(width, height, ARGB);
19+
}
20+
}

0 commit comments

Comments
 (0)