The goal is to create an image and display it in a window (in a program that also does a lot of other things). It works fine now with "new BufferedImage()" and "image.setRGB()".
It's only an...
Type: Posts; User: repaint_forever
The goal is to create an image and display it in a window (in a program that also does a lot of other things). It works fine now with "new BufferedImage()" and "image.setRGB()".
It's only an...
I found a solution a few hours after posting this. Instead of this --
Image image = w.createImage(new MemoryImageSource(20, 20, pixels, 0, 20));
-- do this:
BufferedImage image...