Re: [gtk-list] Retrieving the colormap of a GdkPixmap or GdkBitmap
- From: Federico Mena Quintero <federico redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Retrieving the colormap of a GdkPixmap or GdkBitmap
- Date: Sat, 23 Oct 1999 17:00:42 -0400
>  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]