Gdk.Pixbuf.RenderPixmapAndMask Method
Creates pixmap and mask bitmaps for a given alpha threshold.

Syntax

public void RenderPixmapAndMask (out Pixmap pixmap_return, out Pixmap mask_return, int alpha_threshold)

Parameters

pixmap_return
a Gdk.Pixmap
mask_return
a Gdk.Pixmap
alpha_threshold
a int, threshold value for opacity.

Remarks

This is merely a convenience function; applications that need to render pixbufs with dither offsets or to given drawables should use Pixbuf.RenderToDrawableAlpha or Pixbuf.RenderToDrawable and Pixbuf.RenderThresholdAlpha.

The pixmap that is created is created for the colormap returned by Rgb.GetColormap. You normally will want to instead use the actual colormap for a widget, and use Pixbuf.RenderPixmapAndMaskForColormap, If the pixbuf does not have an alpha channel, then mask_return will be set to null.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)