Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gdkPixbufRenderPixmapAndMaskForColormap

gdkPixbufRenderPixmapAndMaskForColormap


Description

Creates a pixmap and a mask bitmap which are returned in the pixmap.return and mask.return arguments, respectively, and renders a pixbuf and its corresponding tresholded alpha mask to them. This is merely a convenience function; applications that need to render pixbufs with dither offsets or to given drawables should use gdkDrawPixbuf, and gdkPixbufRenderThresholdAlpha.

Usage

gdkPixbufRenderPixmapAndMaskForColormap(object, colormap, alpha.threshold = 127)

Arguments

object

A pixbuf.

colormap

A GdkColormap

alpha.threshold

Threshold value for opacity values.

Details

The pixmap that is created uses the GdkColormap 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.

Value

A list containing the following elements:

pixmap.return

Location to store a pointer to the created pixmap, or NULL if the pixmap is not needed.

mask.return

Location to store a pointer to the created mask, or NULL if the mask is not needed.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.