Re: GdkColor



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]