You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.
Hello, I have an application which works with BufferedImage, adding "layers" and then obtaining the final image using the following code:
BufferedImage buffer; // Current image
Graphics2D g2d = buffer.createGraphics() // Get a Graphics2D to work on this image
And then I work on it adding layers, and then dispose the Graphics2D. I do so on each layer, until I get the final image.
Is there a way to I have use the benefits from GLG2D? Since I can't even cast the Graphics2D obtained to yours GLGraphics2D. Or there is another way to work with images that I don't know yet? Thanks in advance!
The text was updated successfully, but these errors were encountered:
You need to draw your scene into a GLPBuffer or an FBO, some offscreen
drawable. Then use the JOGL com.sun.opengl.util.Screenshot class to dump
the FBO to a BufferedImage.
Hello, I have an application which works with BufferedImage, adding "layers" and then obtaining the final image using the following code:
BufferedImage buffer; // Current image
Graphics2D g2d = buffer.createGraphics() // Get a Graphics2D to work on this image
And then I work on it adding layers, and then dispose the Graphics2D. I do so on each layer, until I get the final image.
Is there a way to I have use the benefits from GLG2D? Since I can't even cast the Graphics2D obtained to yours GLGraphics2D. Or there is another way to work with images that I don't know yet? Thanks in advance!
The text was updated successfully, but these errors were encountered: