how to draw with fore-and background

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

 



hi,
can somebody tell me how to draw a rectangle on a pixmap
with only one graphic context (gc) and the functions ...
gdk_gc_set_foreground (gc, &blue);
gdk_gc_set_background (gc, &red);
the colors blue and red i have allocated in a colormap thats not the probl.
but when i draw with gdk_draw_rectangle(pixmap, gc, TRUE, x, y, 50, 50);
i only had a filled red rectangle on the screen. why this is so?
please help me. thankx Ben

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
_______________________________________________

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