Re: Canvas background color
- From: stian nixia no
- To: "KC" <kcc1967 gmail com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Canvas background color
- Date: Wed, 20 Apr 2005 12:10:38 +0200 (CEST)
> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]