Re: [gtk-list] Retrieving the colormap of a GdkPixmap or GdkBitmap



>  My next problem deals with retrieving the colormap of a 
>  GdkPixmap or a GdkBitmap. I need to do this because I need to 
>  retrieve the GdkImage from one of these drawables and I need to 
>  retrieve the colormap along with the image. However, I have noticed 
>  that the gdk_window_get_colormap function does not work at all 
>  with pixmaps and bitmaps. Is there something else I should be 
>  doing?

Pixmaps do not have a colormap associated to them; they are just hunks
of raw pixel data.

You somehow need to know the colormap that the application had in mind
when creating the pixmap.

  Federico



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