Hallo,
Ich will ein Pixbuf für das systemtray erstellen (20x20? 16x16?).
Mit Gelb als Hintergrundfarbe und ein-drei Zahlen drauf.
Geht sowas irgendwie?
MfG Giuly
Erledigt,
Code:GdkPixbuf* YI = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 24, 24); GdkColor color; guint32 pixel; if (gdk_color_parse ("Yellow", &color)) pixel = (color.red >> 8) << 24 | (color.green >> 8) << 16 | (color.blue >> 8) << 8; gdk_pixbuf_fill (YI, pixel);
Lesezeichen