Pixbuf.renderPixmapAndMask

Creates a pixmap and a mask bitmap which are returned in the pixmap_return and mask_return arguments, respectively, and renders a pixbuf and its corresponding thresholded alpha mask to them. This is merely a convenience function; applications that need to render pixbufs with dither offsets or to given drawables should use gdk_draw_pixbuf() and gdk_pixbuf_render_threshold_alpha(). The pixmap that is created is created for the colormap returned by gdk_rgb_get_colormap(). You normally will want to instead use the actual colormap for a widget, and use gdk_pixbuf_render_pixmap_and_mask_for_colormap(). If the pixbuf does not have an alpha channel, then *mask_return will be set to NULL.

class Pixbuf
void
renderPixmapAndMask

Parameters

pixmapReturn GdkPixmap*

Location to store a pointer to the created pixmap, or NULL if the pixmap is not needed.

maskReturn Bitmap

Location to store a pointer to the created mask, or NULL if the mask is not needed.

alphaThreshold int

Threshold value for opacity values.

Meta