Pixmap.colormapCreateFromXpmD

Warning gdk_pixmap_colormap_create_from_xpm_d 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_xpm_data() 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 data in XPM format using a particular colormap.

class Pixmap
static
colormapCreateFromXpmD

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.

data string[]

Pointer to a string containing the XPM data.

Return Value

Type: Pixmap

the GdkPixmap. [transfer none]

Meta