Hi....<div>I am using</div><div>  <a class="link" href="http://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-create-for-data" title="cairo_image_surface_create_for_data ()" style="background-color:rgb(255,255,255);text-decoration:none;color:rgb(52,101,164)">cairo_image_surface_create_for_data</a><span style="background-color:rgb(255,255,255)"> (</span><em class="parameter" style="background-color:rgb(255,255,255)"><code>unsigned <span class="type">char</span> *data</code></em><span style="background-color:rgb(255,255,255)">,</span></div>
<pre class="synopsis" style="background-image:initial;background-color:rgb(255,255,255);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:rgb(211,215,207);border-right-color:rgb(211,215,207);border-bottom-color:rgb(211,215,207);border-left-color:rgb(211,215,207);padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em">
                                                         <em class="parameter"><code><a class="link" href="http://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t" style="text-decoration:none;color:rgb(52,101,164)"><span class="type">cairo_format_t</span></a> format</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> height</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> stride</code></em>);</pre><pre class="synopsis" style="background-image:initial;background-color:rgb(255,255,255);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:rgb(211,215,207);border-right-color:rgb(211,215,207);border-bottom-color:rgb(211,215,207);border-left-color:rgb(211,215,207);padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em">
to create the surface.... But I want to set the origin of this surface to some coordinate(x ,y) and I am not able to do it. Its mentioned in document that its start from top left.. But for my thing I have to set this start of surface somewhere from the middle.</pre>
<pre class="synopsis" style="background-image:initial;background-color:rgb(255,255,255);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:rgb(211,215,207);border-right-color:rgb(211,215,207);border-bottom-color:rgb(211,215,207);border-left-color:rgb(211,215,207);padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em">
Please let me know how to do thi as I didnt find any thing to shift the origin</pre><pre class="synopsis" style="background-image:initial;background-color:rgb(255,255,255);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:rgb(211,215,207);border-right-color:rgb(211,215,207);border-bottom-color:rgb(211,215,207);border-left-color:rgb(211,215,207);padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em">
<br></pre><pre class="synopsis" style="background-image:initial;background-color:rgb(255,255,255);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:rgb(211,215,207);border-right-color:rgb(211,215,207);border-bottom-color:rgb(211,215,207);border-left-color:rgb(211,215,207);padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em">
<br></pre><pre class="synopsis" style="background-image:initial;background-color:rgb(255,255,255);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:rgb(211,215,207);border-right-color:rgb(211,215,207);border-bottom-color:rgb(211,215,207);border-left-color:rgb(211,215,207);padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em">
regards</pre>