Pixbuf.getFromImage

Same as gdk_pixbuf_get_from_drawable() but gets the pixbuf from an image.

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

Parameters

src ImageGdk

Source GdkImage.

cmap Colormap

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

srcX int

Source X coordinate within drawable.

srcY int

Source Y coordinate within drawable.

destX int

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

destY int

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

width int

Width in pixels of region to get.

height int

Height in pixels of region to get.

Return Value

Type: Pixbuf

dest, newly-created pixbuf if dest was NULL, NULL on error

Meta