Package: gdk-pixbuf

Function gdk-pixbuf-new-subpixbuf

Lambda List

gdk-pixbuf-new-subpixbuf (pixbuf x y width height)

Arguments

pixbuf -- a gdk-pixbuf object
x -- an integer with the x coord in pixbuf
y -- an integer with the y coord in pixbuf
width -- an integer with the width of region in pixbuf
height -- an integer with the height of region in pixbuf

Return Value

A new gdk-pixbuf object.

Details

Creates a new pixbuf which represents a sub-region of pixbuf. The new pixbuf shares its pixels with the original pixbuf, so writing to one affects both. The new pixbuf holds a reference to pixbuf, so pixbuf will not be finalized until the new pixbuf is finalized.
 

See also

2021-12-12