Package: gdk-pixbuf

Function gdk-pixbuf:pixbuf-new-subpixbuf

Lambda List

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

Arguments

pixbuf -- a gdk-pixbuf: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

The new gdk-pixbuf: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

#2024-6-29