Re: Canvas background color

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

 



> typedef struct {
>     guint32 pixel;
>     gunit16 red;
>     guint16 green;
>     guint16 blue;
> } GdkColor;
>
> What's purpose of GdkColor.pixel ?  Why it's 32 bits instead of
> 16*3 = 48 bits (for RGB) ?  When I try to set background color,
> what value should I use for GdkColor.pixel ?

pixel is internal value against Xlib. It makes a lot of sense when for
instance you have 8bit resolution and all colours has to be allocated
against  X. (As far as I can understand)

Stian
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux