[cairo] how to copy a rect area from one surface to another
KCheng at extracomm.com
Tue Dec 16 23:37:16 PST 2008
OK. I understand what you are talking about. I will give it a try. Thanks!
"abhidhnya sonawane" <abhidhnya.sonawane at gmail.com>
"Kelvin Cheng" <KCheng at extracomm.com>
Re: [cairo] how to copy a rect area from one surface to another
I should have said that there is a mistake there.
But the code given there is right as I have implemented it.
1.Take a new cairo context and assoicate a new cairo surface with it.
2.Then do cairo_set_source_surface (cr, SOURCE SURFACE, dest_x - source_x,
dest_y - source_y) ,where cairo context is the is the one in step 1.
On Wed, Dec 17, 2008 at 12:41 PM, Kelvin Cheng <KCheng at extracomm.com>
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 mailing list
cairo at cairographics.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo