On 11/5/08, Brian Hook <[EMAIL PROTECTED]> wrote:
> I'm currently reading back the framebuffer and trying to save it out.  As a
> JPG it works fine, but I need to save in BMP format.  Unfortunately simply
> going through the regular encoder generates an error because BMPs are RGB
> but the color buffer is RGBA -- I was hoping to find a trivial way (that
> doesn't involve modifying Pyglet) that allows me to retrieve or convert the
> framebuffer into an RGB format that I can then send to the encoder?

The ImageData class has methods for converting between formats (you'll
probably need to get the data as a string, then create a new ImageData
object from that string to save it as a bmp).

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to