Re: Getting hex string from a GdkColor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux