Re: about GdkColor
- From: Noah Levitt <nlevitt columbia edu>
- To: Jun Ma <ma_jun1973 yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: about GdkColor
- Date: Sun, 20 Apr 2003 22:50:02 -0400
The api docs say
guint32 pixel For allocated colors, the value used to draw
this color on the screen.
When the color is allocated (e.g. with gdk_rgb_find_color)
this field is filled in. I don't think you have to worry
about initializing it to anything in particular).
Noah
On Mon, Apr 21, 2003 at 10:28:29 +0800, Jun Ma wrote:
> Hello,
>
> As we know a color can be described by RGB. RGB is
> enough. But, why does GdkColor use the following
> structure:
> struct GdkColor {
>
> guint32 pixel;
> guint16 red;
> guint16 green;
> guint16 blue;
> };
>
> What is the 'pixel' in GdkColor? What is the relation
> between 'pixel' and RGB? How to know the pixel's value
> from RGB?
>
> For example, when the color is red or RGB(65535, 0,
> 0), what will be the 'pixel'?
>
> Thanks.
>
> Jun
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]