Re: Loading 16-bit colors into GTK

On Fri, 2006-05-19 at 07:52 -0700, James Kent wrote:
> I have a "black box" application that renders its data into a 16-bit
> buffer (R5G6B5).  I would like to display that data in a GTK window.
> Does anyone know if there is support for loading buffers of R5G6B5
> format color data into GTK/GDK?

There's no direct support for that, unfortunately.  You'll have to write
your own conversion function to take a 565 image and convert it into a
24-bpp GdkPixbuf.  Just create an empty pixbuf and fill the pixels by


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]