Re: color in string
- From: Dave Smith <davecindysmith comcast net>
- To: Tim Evans <t evans aranz com>, gtk-list gnome org
- Subject: Re: color in string
- Date: Mon, 1 Sep 2003 22:23:53 -0400
On Monday 01 September 2003 21:40, Tim Evans wrote:
> Luiz Rafael Culik Guimaraes wrote:
> > how to transform the GDK_COLOR structure resulted from an
> > GtkColorSelection Dialog in the form of "#33DD44"
> This is untested, but should work:
> GdkColor c;
> char s[8];
> sprintf( s, "#%02x%02x%02x", c.red>>8, c.green>>8, c.blue>>8 );
Try:
gdk_color_parse("#33DD44",&c);
Dave Smith
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]