JOGL 2中保存的图像全部为红色

时间:2014-12-19 23:53:38

标签: jogl

当我在JOGL 2应用程序中保存图像时,图像以不同的红色阴影呈现,而不是预期的颜色。

以下是我用来保存图片的代码:

AWTGLReadBufferUtil glReadBufferUtil = new AWTGLReadBufferUtil(gl.getGL2().getGLProfile(), false); BufferedImage image = glReadBufferUtil.readPixelsToBufferedImage(gl.getGL2(), true); ImageIO.write(image, "png", outputfile);

任何有关如何解决此问题的提示都将不胜感激。

0 个答案:

没有答案