File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,23 @@ public int get(int x, int y) {
350350 }
351351
352352
353+ /**
354+ * @param w width of pixel rectangle to get
355+ * @param h height of pixel rectangle to get
356+ */
357+ public PImage get (int x , int y , int w , int h ) {
358+ if (outdatedPixels ) loadPixels ();
359+ return super .get (x , y , w , h );
360+ }
361+
362+
363+ @ Override
364+ public PImage copy () {
365+ if (outdatedPixels ) loadPixels ();
366+ return super .copy ();
367+ }
368+
369+
353370 protected void getImpl (int sourceX , int sourceY ,
354371 int sourceWidth , int sourceHeight ,
355372 PImage target , int targetX , int targetY ) {
Original file line number Diff line number Diff line change @@ -449,6 +449,23 @@ public int get(int x, int y) {
449449 }
450450
451451
452+ /**
453+ * @param w width of pixel rectangle to get
454+ * @param h height of pixel rectangle to get
455+ */
456+ public PImage get (int x , int y , int w , int h ) {
457+ if (outdatedPixels ) loadPixels ();
458+ return super .get (x , y , w , h );
459+ }
460+
461+
462+ @ Override
463+ public PImage copy () {
464+ if (outdatedPixels ) loadPixels ();
465+ return super .copy ();
466+ }
467+
468+
452469 @ Override
453470 protected void getImpl (int sourceX , int sourceY ,
454471 int sourceWidth , int sourceHeight ,
You can’t perform that action at this time.
0 commit comments