PImage Window
in
Programming Questions
•
1 year ago
for some reason when I open a PImage, it doesn't open a new window. Instead, it opens as a background to the main canvas. I would really appreciate it if anyone could tell me what I am doing wrong so that I can do it right
- MorenaImage morenaImage = new MorenaImage(source);
- Image image=Toolkit.getDefaultToolkit().createImage(morenaImage);
- BufferedImage bimg=new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
- bimg.createGraphics().drawImage(image, 0, 0, null);
- PImage img = new PImage((java.awt.Image)bimg);
- image(img, 0, 0);
Best, Arthur
1