Pixbuf.renderThresholdAlpha

Takes the opacity values in a rectangular portion of a pixbuf and thresholds them to produce a bi-level alpha mask that can be used as a clipping mask for a drawable.

class Pixbuf
void
renderThresholdAlpha
(,
int srcX
,
int srcY
,
int destX
,
int destY
,
int width
,
int height
,)

Parameters

bitmap Bitmap

Bitmap where the bilevel mask will be painted to.

srcX int

Source X coordinate.

srcY int

source Y coordinate.

destX int

Destination X coordinate.

destY int

Destination Y coordinate.

width int

Width of region to threshold, or -1 to use pixbuf width

height int

Height of region to threshold, or -1 to use pixbuf height

alphaThreshold int

Opacity values below this will be painted as zero; all other values will be painted as one.

Meta