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

gdkPixbufGetFromImage

gdkPixbufGetFromImage


Description

Same as gdkPixbufGetFromDrawable but gets the pixbuf from an image.

Usage

gdkPixbufGetFromImage(src, cmap, src.x, src.y, dest.x, dest.y, 
    width, height)

Arguments

src

Source GdkImage.

cmap

A colormap, or NULL to use the one for src. [ allow-none ]

src.x

Source X coordinate within drawable.

src.y

Source Y coordinate within drawable.

dest.x

Destination X coordinate in pixbuf, or 0 if dest is NULL.

dest.y

Destination Y coordinate in pixbuf, or 0 if dest is NULL.

width

Width in pixels of region to get.

height

Height in pixels of region to get.

Value

A list containing the following elements:

retval

[GdkPixbuf] dest, newly-created pixbuf if dest was NULL, NULL on error

dest

Destination pixbuf, or NULL if a new pixbuf should be created. [ allow-none ]

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.