Gdk.Pixbuf.RenderThresholdAlpha Method
Render pixbuf alpha channel as a bi-level clip mask to a Gdk.Pixmap

Syntax

public void RenderThresholdAlpha (Pixmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold)

Parameters

bitmap
The destination, a 1-bit-depth Gdk.Pixmap.
src_x
Source X coordinate.
src_y
Source Y coordinate.
dest_x
Destination X coordinate.
dest_y
Destination Y coordinate.
width
The width of the region to modify, or -1 to use Pixbuf.Width.
height
The height of the region to reder or -1 to use Pixbuf.Height
alpha_threshold
Value below this will be painted as zero; all other values will be painted as one.

Remarks

This function is designed to threshold and render the alpha values from a rectangular of this Gdk.Pixbuf into the destination Gdk.Bitmask which can then be used as a clipping mask for a Gdk.Drawable.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)
Since: Gtk# 2.4