Re: [gtk-list] how to convert windows RGB color to GdkColor



Jiang XU wrote:
> 
> I know that in the windows, a pixel is made from RGB, each value of them
> is between 0 and 255.
> Now I work on the Linux and I found that the GdkColor also has the same
> structures RGB, but the difference is that each value is between 0 and
> 65535.  I wonder whether there is a way to convert the windows RGB color
> to GdkColor?

Multiply by 256?!

-- 
Brad Pepers
Linux Canada Inc.            Home of Linux products in Canada!
http://www.linuxcanada.com   Proud supporter of Cyclades, Red
brad@linuxcanada.com         Hat, and Caldera.



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