Re: Getting hex string from a GdkColor



> 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]