Re: Color selection
- From: Micah Carrick <email micahcarrick com>
- To: gtk-list <gtk-list gnome org>
- Subject: Re: Color selection
- Date: Thu, 21 Dec 2006 09:31:15 -0800
If I had to guess, I would say that since the 255 scheme has 256
different values per color (including 0) element, you could simply
divide the 0-65535 color element by 256.
- Micah Carrick
www.micahcarrick.com www.gtkforums.com
Alexander S.Kresin wrote:
Hi All,
I have a problem with a color selection dialog.
The RGB values in the dialog itself are shown as 0..255 for each of
the red, green, blue; but the values, returned by gtk_color_selection_get_current_color (colorsel, &color)
in color.red, color.green, color.blue are in the range 0..65535.
How can I convert them to the 0..255 for to be able to get Windows
compatible long value by color.red + color.green*255 +
color.blue*65535 ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]