-2

I am working on streamdeck plugin. Streamdeck supports showing custom images is base64 format. I would like to generate an image using libgd and send the base64 string to streamdeck.

Tanmay_vijay
  • 569
  • 3
  • 12

1 Answers1

0

You would need to first render to a framebuffer (virtual screen), then capture the texture from that (because no direct reads on a framebuffer), then convert that captured texture to a pixmap, then get the pixels to a bytebuffer, then convert to base64.

Framebuffer https://libgdx.com/wiki/graphics/opengl-utils/frame-buffer-objects

Framebuffer conversion libgdx TextureRegion to Pixmap

londonBadger
  • 611
  • 2
  • 5
  • 5