I had a similar problem when I wanted to create a PNG level created in my level editor. The level is made of tiles placed by the creator, then the entire level is saved as .png, which will be used in the game.
Decided it like P.T. explains. I hope this is helpful to others who are facing the same problem.
And in your application configuration: cfg.useGL20 = true; GL20 must be able to create FrameBuffer
public boolean exportLevel(){
Note. I'm new to LibGDX, so this may not be the best way to do this.
Toast source share