Re: GdkColor
- From: James Drabb <JDrabb tampabay rr com>
- To: gtk-list gnome org
- Subject: Re: GdkColor
- Date: Mon, 10 Feb 2003 23:24:49 -0500
On 10 Feb 2003 22:55:01 -0500
Owen Taylor <otaylor redhat com> wrote:
> Actually, try
>
> color.red >> 8
>
> instead. Basically you want to convert a color in the range of
> 0-65535 to 0-255, and dividing by 256 is the correct way to do
> this.
>
> Regards,
> Owen
Thanks Owen.
Jim Drabb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]