Re: [gtk-list] Drawing in GtkDrawingArea




On Sat, 28 Nov 1998, Marsel Osipov wrote:
> 
> I have done  gdk_gc_set_foreground(gc, color) and
> gdk_gc_set_background(gc, color) where the color is the color that I
> want the pixel to be.  No result.
> 

Did you allocate the color?

Check out the tutorial and FAQ on color allocation, and the Scribble
example in the tutorial.

Havoc




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