Re: Question about GdkColor
- From: Sven Neumann <sven gimp org>
- To: yeajchao <yeajchao yahoo com cn>
- Cc: gtk-app <gtk-app-devel-list gnome org>, gtk-list <gtk-list gnome org>
- Subject: Re: Question about GdkColor
- Date: Fri, 17 Mar 2006 14:35:00 +0100
Hi,
yeajchao <yeajchao yahoo com cn> writes:
In general,the RGB color mode ,the red or green or blue's value
is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535
My question is ,how to map (0--255) to (0--65535)
r = ((r << 8) | r);
g = ((g << 8) | g);
b = ((b << 8) | b);
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]