Skip to content

Commit 283191e

Browse files
committed
updated pixelWidth/Height in resize()
1 parent 67dd4a1 commit 283191e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/processing/core/PImage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ public void resize(int w, int h) { // ignore
396396
}
397397
this.width = w;
398398
this.height = h;
399+
this.pixelWidth = w * pixelDensity;
400+
this.pixelHeight = h * pixelDensity;
399401
}
400402

401403

0 commit comments

Comments
 (0)