gdkPixbufGetFromImage {RGtk2} | R Documentation

## 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

[Package RGtk2 version 2.20.36.3 Index]