Re: Loading 16-bit colors into GTK
- From: Federico Mena Quintero <federico ximian com>
- To: James Kent <James Kent palmsource com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Loading 16-bit colors into GTK
- Date: Fri, 19 May 2006 10:37:44 -0500
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
hand.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]