Re: Getting hex string from a GdkColor
- From: stian nixia no
- To: "Stefano Esposito" <ragnarok email it>
- Cc: gtk-list gnome org
- Subject: Re: Getting hex string from a GdkColor
- Date: Fri, 8 Apr 2005 18:27:24 +0200 (CEST)
> Hi all,
>
> i've a color button from which i obtain a GdkColor with
> gtk_color_button_get_color(). Now i need the hex string representing this
> color but all that i find searching in the api docs is a function that
> obtain a GdkColor from an hex string. Any hints? Thanks to you all :)
>
> Greetings
> Stefano
sprintf(target, "#%02x%02x%02x", redvalue, greenvalue, bluevalue);
Stian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]