public static ImageSurface ImageSurfaceFromPng(BinaryReader reader) { var obj = new CairoStreamReader(reader); var fn = new cairo_read_func_t(obj.do_read); var surface = cairo_image_surface_create_from_png_stream(fn, IntPtr.Zero); return (ImageSurface)_ctor.Invoke(new object[] { surface, false }); }
public static ImageSurface ImageSurfaceFromPng(BinaryReader reader) { var obj = new CairoStreamReader(reader); var fn = new cairo_read_func_t(obj.do_read); var surface = cairo_image_surface_create_from_png_stream(fn, IntPtr.Zero); return((ImageSurface)_ctor.Invoke(new object[] { surface, false })); }