Pixmap.createFromXpmD

Warning gdk_pixmap_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.

class Pixmap
static
createFromXpmD

Parameters

drawable Drawable

a GdkDrawable, used to determine default values for the new pixmap.

mask Bitmap

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. out

transparentColor Color

This color will 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