public ImageSurface(Format format, int width, int height) { surface = CairoAPI.cairo_image_surface_create(format, width, height); lock (surfaces.SyncRoot){ surfaces [surface] = this; } }
public static Cairo.Surface CreateForImage( Cairo.Format format, int width, int height) { IntPtr p = CairoAPI.cairo_image_surface_create( format, width, height); return(new Cairo.Surface(p, true)); }