bring back getImage() to fix #4473

This commit is contained in:
Ben Fry
2016-08-12 21:34:50 -04:00
parent 0e603a151a
commit 2c0c1b9a36
4 changed files with 14 additions and 8 deletions
@@ -423,7 +423,7 @@ public class PGraphicsPDF extends PGraphicsJava2D {
scale((x2 - x1) / imageWidth,
(y2 - y1) / imageHeight);
if (u2-u1 == imageWidth && v2-v1 == imageHeight) {
g2.drawImage((Image) image.getNative(), 0, 0, null);
g2.drawImage(image.getImage(), 0, 0, null);
} else {
PImage tmp = image.get(u1, v1, u2-u1, v2-v1);
g2.drawImage((Image) tmp.getNative(), 0, 0, null);