<div dir="ltr">Hi,<br> Thanks for the quick response. I tried the api gdk_pixbuf_get_from_drawable( however it does not seem to work with a cairo_surface_t, is cairo_surface_t a GdkDrawable i think its not?<br><br>cairo_sur = cairo_surface_create_for_image(...)<br>
<br>GdkPixbuf *pix&nbsp; = gdk_pixbuf_get_from_drawable(NULL, (GdkDrawable*)cairo_sur, 0,0,0,0, width, height);<br>returns empty.<br><br>Let me know if somethings wrong above.<br><br>I see a patch that does this (surface_to_pixbuf)<br>
<a href="http://lists.ximian.com/pipermail/mono-patches/2008-March/113079.html">http://lists.ximian.com/pipermail/mono-patches/2008-March/113079.html</a><br>will try and let u know..<br><br><br>thanks,<br>Zaheer<br><br><br>
<div class="gmail_quote">On Mon, Oct 20, 2008 at 12:31 PM, Sven Herzberg <span dir="ltr">&lt;<a href="mailto:herzi-ml@gnome-de.org" target="_blank">herzi-ml@gnome-de.org</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;">Am Montag, den 20.10.2008, 12:26 +0530 schrieb zaheer ahmad:<br>
<div>&gt; hi,<br>
&gt; I would like to convert a cairo_surface_t to GdkPixbuf. There seems to<br>
&gt; be no straight forward apis to do that. looking for some inputs.<br>
<br>
</div>gdk_pixmap_new()<br>
gdk_cairo_create()<br>
cairo_set_source_surface()<br>
cairo_paint()<br>
cairo_destroy()<br>
gdk_pixbuf_get_from_drawable()<br>
<br>
Like this?<br>
<br>
Regards,<br>
<font color="#888888"> &nbsp;Sven<br>
<br>
<br>
</font></blockquote></div><br></div>