If you are using LibGDX, I have to say that I don't recommend also using BufferedImages (from Java2D), instead you could use a Pixmap, or if you really do need BufferedImages, then I guess you could use ImageIO to save the image to a file, bring the file back in as a texture, then delete the file, but that seems quite hacky and inefficient.

If you are using libgdx, you should NEVER EVER touch anything from java2d.

Have fun.

PS:

You should be able to get a pixel array from the bufferedimage and create a libgdx texture from that. Look at how to take a bufferedimage and make it into a opengl texture. Hell, you could just use that search box with the cob webs on it.

I think this bug could be fixed as there are already 2 helpers in JOGL to do that:- com.jogamp.opengl.util.awt.Screenshot- com.jogamp.opengl.util.GLReadBufferUtil (AWT-free, you can use it with TextureData and TextureIO)

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org