From d2593735533affb8e7ed93c88073ef9969173669 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 19 Jan 2020 21:40:20 -0500 Subject: [PATCH] moving more things through PImageAWT --- core/src/processing/awt/ShimAWT.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/processing/awt/ShimAWT.java b/core/src/processing/awt/ShimAWT.java index c9a179ae5..4c5ee5bb7 100644 --- a/core/src/processing/awt/ShimAWT.java +++ b/core/src/processing/awt/ShimAWT.java @@ -184,11 +184,12 @@ public class ShimAWT implements PConstants { try { BufferedImage bi = ImageIO.read(stream); - PImage outgoing = new PImage(bi.getWidth(), bi.getHeight()); + //PImage outgoing = new PImage(bi.getWidth(), bi.getHeight()); + PImage outgoing = new PImageAWT(bi); outgoing.parent = sketch; - bi.getRGB(0, 0, outgoing.width, outgoing.height, - outgoing.pixels, 0, outgoing.width); + //bi.getRGB(0, 0, outgoing.width, outgoing.height, + // outgoing.pixels, 0, outgoing.width); // check the alpha for this image // was gonna call getType() on the image to see if RGB or ARGB,