public ImageSurface(string filename) { surface = CairoAPI.cairo_image_surface_create_from_png(filename); lock (surfaces.SyncRoot) { surfaces[surface] = this; } }