Pixbuf.subpixbuf
Description:
[ CCode ( has_construct_function = false ) ]
public Pixbuf.subpixbuf (Pixbuf src_pixbuf, int src_x, int src_y, int width, int height)
public Pixbuf.subpixbuf (Pixbuf src_pixbuf, int src_x, int src_y, int width, int height)
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.
Note that if `src_pixbuf` is read-only, this function will force it to be mutable.
Parameters:
| this |
a `GdkPixbuf` |
| src_x |
X coord in this |
| src_y |
Y coord in this |
| width |
width of region in this |
| height |
height of region in this |
Returns:
|
a new pixbuf |