<br><font size=2 face="sans-serif">OK. I understand what you are talking
about. I will give it a try. Thanks!</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">&quot;abhidhnya sonawane&quot; &lt;abhidhnya.sonawane@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&quot;Kelvin Cheng&quot; &lt;KCheng@extracomm.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">17/12/2008 15:34</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [cairo] how to copy a rect area
from one surface to another</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3><br>
<br>
Hi,<br>
<br>
I should have said that there is a mistake there.<br>
<br>
But the code given there is right as I have implemented it.<br>
<br>
1.Take a new cairo context and assoicate a new cairo surface with it.<br>
2.Then do </font><tt><font size=3>cairo_set_source_surface (cr, <b>SOURCE
SURFACE</b>, dest_x - source_x, dest_y - source_y) ,where cairo context
is the is the one in step 1.<br>
<br>
regards,<br>
Abhidhnya.<br>
<br>
<br>
</font></tt>
<br><font size=3>On Wed, Dec 17, 2008 at 12:41 PM, Kelvin Cheng &lt;</font><a href=mailto:KCheng@extracomm.com><font size=3 color=blue><u>KCheng@extracomm.com</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=2 face="sans-serif"><br>
Hi,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
The FAQ Question 2 b &nbsp;describes how to control the size of the source
that is copied to the destination.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
However, it does not describes how to control the starting point of the
source to copy.</font><font size=3> </font><font size=2 face="sans-serif"><br>
It seems that it always copy the source from (0, 0). &nbsp; &nbsp; Am I
correct ?</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
Regards,</font><font size=3> </font><font size=2 color=#8f8f8f face="sans-serif"><br>
Kelvin</font><font size=3><br>
_______________________________________________<br>
cairo mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:cairo@cairographics.org><font size=3 color=blue><u>cairo@cairographics.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://lists.cairographics.org/mailman/listinfo/cairo target=_blank><font size=3 color=blue><u>http://lists.cairographics.org/mailman/listinfo/cairo</u></font></a>
<br>
<br>