RE: Pixmaps/Bitmaps
- From: "Esquibel, Rick" <Rick Esquibel ARZ Boeing com>
- To: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: RE: Pixmaps/Bitmaps
- Date: Wed, 21 Feb 2001 11:13:47 -0700
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]