about GdkColor



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

_________________________________________________________
Do You Yahoo!? 
雅虎邀你参与CCTV-2对话节目调查:移动、联通、灵通,要说爱你不容易
http://rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cctv_wireless_study



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