[cairo] how to copy a rect area from one surface to another

Behdad Esfahbod behdad at behdad.org
Tue Dec 16 22:55:30 PST 2008


Kelvin Cheng wrote:
> 
> Hi,
> 
> The FAQ Question 2 b  describes how to control the size of the source
> that is copied to the destination.
> 
> However, it does not describes how to control the starting point of the
> source to copy.
> It seems that it always copy the source from (0, 0).     Am I correct ?

cairo_set_source_surface() takes an x,y pair of offsets.

behdad


> Regards,
> Kelvin



More information about the cairo mailing list