Gdk.Pixbuf.RenderPixmapAndMaskForColormap Method
Creates pixmap and mask bitmaps for a given alpha threshold using a specified colormap.

Syntax

public void RenderPixmapAndMaskForColormap (Colormap colormap, out Pixmap pixmap_return, out Pixmap mask_return, int alpha_threshold)

Parameters

colormap
a Gdk.Colormap
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 uses the Gdk.Colormap specified by colormap. This colormap must match the colormap of the window where the pixmap will eventually be used or an error will result. 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)