Re: question: colors, visuals, please help to understand



Alexander Chemeris wrote:

Tuesday, August 20, 2002, 2:37:25 PM, you wrote:

  I need to allocate colors in PseudoColor and change their values
in runtime (gtk+-2.0). GDK allows me to allocate a writeable colors
in colormap via gdk_colormap_alloc_colors. But the problem is all
functions I've found are deprecated: gdk_colors_store,
gdk_color_change, gdk_colormap_change.

See for GdkRGB part of Gdk.

There's no direct support for writeable colours in GdkRGB.


Function used to allocate colors here is gdk_rgb_find_color().

Allocate - yes, but not to change the value of previously allocated writeable colour. I need to have a constant pixel value (initialized by gdk_colormap_alloc_colors in startup time) and ability to change the R/G/B values of this pixel. I can't find
non-deprecated functions to do this - that's the main reason of my screams.


Enough?

Nope.


PS: thanks for respond anyway, it looks like nobody else cares (don't read this, Cameron :).

Olexiy





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