[gtkada] Cairo : Binding hints for cairo_image_surface_create_from_png_stream
Nicolas Setton
setton at adacore.com
Wed Sep 21 13:26:06 CEST 2011
Hi David,
> yes, you are true, as it knowns the PNG format,
> cairo_surface_write_to_png_stream take care of the memory allocations
> concerning data, and guess the values of length every-time it calls the
> cairo_read_func_t callback.
> It work like a charm.
> I used a Guchars_Ptr.Pointer type (gdk-property.adb:41) as the data type.
Great, thanks for letting us know it worked. This looks like a good addition to the bindings, don't hesitate to contribute this to GtkAda if/when you feel it is ready :-)
Nicolas
More information about the gtkada
mailing list