Re: pixbuf<->cairo_surface_t conversion
- From: Kalle Vahlman <kalle vahlman gmail com>
- To: Andrew Cowie <andrew operationaldynamics com>
- Cc: gtk-devel-list gnome org
- Subject: Re: pixbuf<->cairo_surface_t conversion
- Date: Fri, 3 Sep 2010 11:14:35 +0300
2010/9/3 Andrew Cowie <andrew operationaldynamics com>
> We can kiss gdk_pixbuf_get_pixels() goodbye, no problem, but I'm just
> curious what someone would replace it with... draw to a Cairo image
> surface, save that to a PNG and then load it and... oh wait. :)
You can get the pixels from the cairo image surface with
cairo_image_surface_get_data().
It wouldn't make sense to alias these two since the stored formats are
not compatible so code needs to adapt to it anyway.
Btw, just to state the obvious, this stuff rocks :)
--
Kalle Vahlman, zuh iki fi
Powered by http://movial.com
Interesting stuff at http://sandbox.movial.com
See also http://syslog.movial.fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]