GdkColor
- From: James Drabb <JDrabb tampabay rr com>
- To: gtk-list <gtk-list gnome org>
- Subject: GdkColor
- Date: Mon, 10 Feb 2003 21:58:09 -0500
Hello group,
I just started switching to Linux development with GTK
from Visual C++ (ewww). Anyway, I am bringing up a
color selection dialog with gtk_color_selection_dialog_new.
Now a user selects thier color and I retrieve that
with a call to gtk_color_selection_get_current_color.
Now I have a GdkColor variable named color with the
red, green and blue components. However, say I selected full
red and no green or blue, the red member has a value of 65535. What do
I need to do to convert the red, green and blue into an RGB? I
want to end up with something like R=>255, G=>128, B=>0.
Thanks for any help,
Jim Drabb
--
---------------------------------------------------------------
Those who would sacrifice freedom for security will get neither
---------------------------------------------------------------
James Drabb JR
Programmer Analyst
Davenport, FL
JDrabb at tampabay dot rr dot com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]