Pixmap.colormapCreateFromXpm

Warning gdk_pixmap_colormap_create_from_xpm has been deprecated since version 2.22 and should not be used in newly-written code. Use a GdkPixbuf instead. You can use gdk_pixbuf_new_from_file() to create it. If you must use a pixmap, use gdk_pixmap_new() to create it and Cairo to draw the pixbuf onto it. Create a pixmap from a XPM file using a particular colormap.

class Pixmap
static
colormapCreateFromXpm

Parameters

drawable Drawable

a GdkDrawable, used to determine default values for the new pixmap. Can be NULL if colormap is given.

colormap Colormap

the GdkColormap that the new pixmap will be use. If omitted, the colormap for window will be used.

mask Bitmap

a pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored.

transparentColor Color

the color to be used for the pixels that are transparent in the input file. Can be NULL, in which case a default color will be used.

filename string

the filename of a file containing XPM data.

Return Value

Type: Pixmap

the GdkPixmap. [transfer none]

Meta