alanb
2008-12-22 17:51:44 UTC
I have a treeview and I want to store dynamically generated images in one of
its columns. Reading the treeview tutorial I see that I need my image as a
pixbuf. I am drawing the images using Cairo, all I can see in the
imagesurface API is to save as a png file directly with no access to its
underlying stream which I could use. So how can I convert a Cairo image to a
pixbuf?
If I use a Gdk.pixmap instead and draw to it, again how do I convert it to a
pixbuf?
thanks
Alan
its columns. Reading the treeview tutorial I see that I need my image as a
pixbuf. I am drawing the images using Cairo, all I can see in the
imagesurface API is to save as a png file directly with no access to its
underlying stream which I could use. So how can I convert a Cairo image to a
pixbuf?
If I use a Gdk.pixmap instead and draw to it, again how do I convert it to a
pixbuf?
thanks
Alan
--
View this message in context: http://www.nabble.com/How-can-I-save-a-cairo-imagesurface-as-a-pixbuf-tp21131994p21131994.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/How-can-I-save-a-cairo-imagesurface-as-a-pixbuf-tp21131994p21131994.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.