- pixmap_return
- a Gdk.Pixmap
- mask_return
- a Gdk.Pixmap
- alpha_threshold
- a int, threshold value for opacity.
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.