File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -3799,12 +3799,14 @@ public PImage loadImage(String filename) { //, Object params) {
3799
3799
}
3800
3800
// int much = (int) (System.currentTimeMillis() - t);
3801
3801
// println("loadImage(" + filename + ") was " + nfc(much));
3802
- PImage image = new PImage (bitmap );
3803
- image .parent = this ;
3804
- // if (params != null) {
3805
- // image.setParams(g, params);
3806
- // }
3807
- return image ;
3802
+ if (bitmap == null ) {
3803
+ System .err .println ("Could not load the image because the bitmap was empty." );
3804
+ return null ;
3805
+ } else {
3806
+ PImage image = new PImage (bitmap );
3807
+ image .parent = this ;
3808
+ return image ;
3809
+ }
3808
3810
}
3809
3811
3810
3812
@@ -8979,6 +8981,11 @@ public void printMatrix() {
8979
8981
}
8980
8982
8981
8983
8984
+ public void cameraUp () {
8985
+ g .cameraUp ();
8986
+ }
8987
+
8988
+
8982
8989
public void beginCamera () {
8983
8990
g .beginCamera ();
8984
8991
}
You can’t perform that action at this time.
0 commit comments