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 <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><font color="#888888">
Abhidhnya.</font></font></tt><br><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 12:19 PM, abhidhnya sonawane <span dir="ltr">&lt;<a href="mailto:abhidhnya.sonawane@gmail.com">abhidhnya.sonawane@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>They have given in it how to copy from source_x ,source_y to dest_x,dest_y.<br>read again.<br>
<br>Its given starting as :<br><br>If you&#39;d
like to instead copy some (<code>width</code>, <code>height</code>) rectangle from
(<code>source_x</code>, <code>source_y</code>) to some point (<code>dest_x</code>, <code>dest_y</code>) on the
destination you would instead compute a new position for the source
surface origin and then use <code>cairo_fill</code> instead of <code>cairo_paint</code>:<br><br><br>regards,<br><font color="#888888">Abhidhnya .</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">
On Wed, Dec 17, 2008 at 12:14 PM, abhidhnya sonawane <span dir="ltr">&lt;<a href="mailto:abhidhnya.sonawane@gmail.com" target="_blank">abhidhnya.sonawane@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Hi,<br><br>I have done some thing like this previously.<br>
<br>Please see the link below, you will get the way to do it .<br><br><a href="http://www.cairographics.org/FAQ/" target="_blank">http://www.cairographics.org/FAQ/</a><br>
<br>Question 2a.<br>
<br>regards,<br>Abhidhnya.
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>