Learn R Programming

RGtk2 (version 2.12.17)

gdkPixbufRenderThresholdAlpha: gdkPixbufRenderThresholdAlpha

Description

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.

Usage

gdkPixbufRenderThresholdAlpha(object, bitmap, src.x, src.y, dest.x, dest.y, width = -1, height = -1, alpha.threshold)

Arguments

object
[GdkPixbuf] A pixbuf.
bitmap
[GdkBitmap] Bitmap where the bilevel mask will be painted to.
src.x
[integer] Source X coordinate.
src.y
[integer] source Y coordinate.
dest.x
[integer] Destination X coordinate.
dest.y
[integer] Destination Y coordinate.
width
[integer] Width of region to threshold, or -1 to use pixbuf width
height
[integer] Height of region to threshold, or -1 to use pixbuf height
alpha.threshold
[integer] Opacity values below this will be painted as zero; all other values will be painted as one.