moving more things through PImageAWT

This commit is contained in:
Ben Fry
2020-01-19 21:40:20 -05:00
parent e46eceab96
commit d259373553
+4 -3
View File
@@ -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,