public ImageSurface(Format format, int width, int height) { surface = CairoAPI.cairo_image_surface_create(format, width, height); lock (surfaces.SyncRoot) { surfaces[surface] = this; } }