cairo_surface_t to pixbuf



Hi,
I was wondering if there is a way of converting cairo_surface_t to pixbuf
currently I am doing:
cairo_surface_write_to_png(oimg2, "tmp.png");
pixbuf = gdk_pixbuf_new_from_file("tmp.png", &g_err);
I'm sure there is a way, but I don't know how...
Thanks,
Roei


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]