Re: [gtk-list] Re: Help with GtkColor
- From: "José Miguel R. Barrientos" <jmiguel ceselsa es>
- To: Justin Zaun <jzaun telerama com>
- CC: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Help with GtkColor
- Date: Thu, 20 May 1999 16:22:38 +0000
Justin Zaun wrote:
>
> Justin Zaun wrote:
> >
> > How do I convert a GtkColor into an XPixel? It is very important that the
> > colors match exactly, and it must work in all color depths. Any help will
> > be very appreciated.
> > Justin
> >
> > --
> > To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
> /dev/null
>
> XColor and GdkColor, both have red, green and blue fields, and are
> identical.
>
> Not real up on X, but the function I'm calling is expecting a XPixel color
> a number from 0-12345 (or some number, can't remember right now). Its the
> acual color of the pixel, not the RGB values... This value is neaded to be
> sent directly to the tuner hardware...
> Thanks,
> Justin
Ok, the pixel value is an index into a ColorMap. GdkColorMap and XColorMap have
the same entries.
Any operation involving color in Gdk must manage a ColorMap. This colormap
matches the X colormap.
Regards,
- José Miguel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]