hi all
i’m trying to do a capture of my display, and save it as a png file.
I have this code, but the png is empty (ie it’s a capture of the good size, but filled with the background color)
canvas is my glCanvas
Image image = canvas.createImage(canvas.getWidth(), canvas.getHeight());
ImageIO.write((RenderedImage)image, "png", new File("output/snapshot.png"));
any lead ?