copyArea

open fun copyArea(srcX: Int, srcY: Int, width: Int, height: Int, destPixbuf: Pixbuf, destX: Int, destY: Int)

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.

Parameters

srcX

Source X coordinate within @src_pixbuf.

srcY

Source Y coordinate within @src_pixbuf.

width

Width of the area to copy.

height

Height of the area to copy.

destPixbuf

Destination pixbuf.

destX

X coordinate within @dest_pixbuf.

destY

Y coordinate within @dest_pixbuf.