Pixbuf.copyArea

Copies a rectangular area from @src_pixbuf to @dest_pixbuf. Conversion of pixbuf formats is done automatically.

If the source rectangle overlaps the destination rectangle on the same pixbuf, it will be overwritten during the copy operation. Therefore, you can not use this function to scroll a pixbuf.

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

Parameters

srcX int

Source X coordinate within @src_pixbuf.

srcY int

Source Y coordinate within @src_pixbuf.

width int

Width of the area to copy.

height int

Height of the area to copy.

destPixbuf Pixbuf

Destination pixbuf.

destX int

X coordinate within @dest_pixbuf.

destY int

Y coordinate within @dest_pixbuf.

Meta