[cairo] _cairo_image_surface_assume_ownership_of_data

Keith Packard keithp at keithp.com
Sat Dec 18 12:31:21 PST 2004

Around 12 o'clock on Dec 18, Owen Taylor wrote:

> What worked well for me recently was:
> LmcBits *lmc_bits_new (LmcBitsFormat  format,
>                        int            width,
>                        int            height,
>                        guchar        *data,
>                        int            rowstride,
>                        GDestroyNotify notify,
>                        gpointer       notify_data);

That makes a lot of sense.  Oh, I'd also like to add

char *
cairo_image_surface_current_data (cairo_surface_t *surface, 
                                  cairo_format_t  *formatp,
                                  int             *widthp, 
                                  int             *heightp,
                                  int             *stridep)

(or some such) so you can just let cairo allocate the memory.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20041218/4da215a5/attachment.pgp

More information about the cairo mailing list