Pixbuf.this

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

Parameters

srcPixbuf Pixbuf

a GdkPixbuf

srcX int

X coord in src_pixbuf

srcY int

Y coord in src_pixbuf

width int

width of region in src_pixbuf

height int

height of region in src_pixbuf

Throws

ConstructionException GTK+ fails to create the object.

Meta