RE: Pixmaps/Bitmaps



Here is some sample code using gdk_pixmap_colormap_create_from_xpm():

  
  GdkPixmap *close = NULL;
  GdkPixmap *open = NULL;
  GdkBitmap *transparent;

  /*-------------------------------------------------------------
  -- Create Pixmap from a file.
  ---------------------------------------------------------------*/

  close = gdk_pixmap_colormap_create_from_xpm(NULL,
gdk_colormap_get_system(), 
                     &transparent, NULL, "../pixmaps/dir.xpm");

  open = gdk_pixmap_colormap_create_from_xpm(NULL,
gdk_colormap_get_system(), 
                      &transparent, NULL, "../pixmaps/info.xpm");

Hope that helps...





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