[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: NewbieQ: Changing color on drawing primitives
- From: CALMELS Clement <calmels_clement stna dgac fr>
- To: Jev <jev ecad org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: NewbieQ: Changing color on drawing primitives
- Date: Wed, 18 Jul 2001 10:12:48 +0200
> GdkColor color;
>
> color->pixel = 0;
> color->red = 65535;
> color->green = 0;
> color->blue = 0;
Then just try gdk_colormap_alloc_color. It's the functiun that allocated
the GdkColor, fixing the "pixel" value. You were right, a GdkColor with
a "pixel" value is an allocated one.
For more details, take a look at
http://developer.gnome.org/doc/API/gdk/gdk-colormaps-and-colors.html
Clement.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]