Skip to content

Commit d259373

Browse files
committed
moving more things through PImageAWT
1 parent e46ecea commit d259373

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/processing/awt/ShimAWT.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ static protected PImage loadImageIO(PApplet sketch, String filename) {
184184

185185
try {
186186
BufferedImage bi = ImageIO.read(stream);
187-
PImage outgoing = new PImage(bi.getWidth(), bi.getHeight());
187+
//PImage outgoing = new PImage(bi.getWidth(), bi.getHeight());
188+
PImage outgoing = new PImageAWT(bi);
188189
outgoing.parent = sketch;
189190

190-
bi.getRGB(0, 0, outgoing.width, outgoing.height,
191-
outgoing.pixels, 0, outgoing.width);
191+
//bi.getRGB(0, 0, outgoing.width, outgoing.height,
192+
// outgoing.pixels, 0, outgoing.width);
192193

193194
// check the alpha for this image
194195
// was gonna call getType() on the image to see if RGB or ARGB,

0 commit comments

Comments
 (0)