Re: [gtk-list] Re: Help with GtkColor
- From: Emmanuel DELOGET <pixel DotCom FR>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Help with GtkColor
- Date: Thu, 20 May 1999 18:04:23 +0200 (MET DST)
As the well known Justin Zaun said...
->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
[info : unless you use a 8 or less bits mode (hw can manage
palettes only in these modes, X does not send the color index
to your hw. I believe it looks up its internal colormap to
transform the index in some RGB value.]
--
__________________________________________________________________________
Emmanuel DELOGET [pixel] pixel@{dotcom.fr,epita.fr} ---- DotCom SA
http://www.epita.fr/~pixel | http://www.dotcom.fr/~pixel
"On the last day, God created Linux. And Microsoft won its antitrust case"
--------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]