copy


Description:

public void copy (Rectangle src_rect, AbyssPolicy repeat_mode, Buffer dst, Rectangle dst_rect)

Copy a region from source buffer to destination buffer.

If the babl_formats of the buffers are the same, and the tile boundaries align, this will create copy-on-write tiles in the destination buffer.

This function never does any scaling. When src_rect and dst_rect do not have the same width and height, the size of src_rect is used.

Parameters:

this

source buffer.

src_rect

source rectangle (or NULL to copy entire source buffer)

repeat_mode

the abyss policy to be using if src_rect is outside src's extent.

dst

destination buffer.

dst_rect

position of upper left destination pixel (or NULL to match src_rect)