public PdfSurface(string filename, double width, double height) { surface = CairoAPI.cairo_pdf_surface_create(filename, width, height); lock (surfaces.SyncRoot){ surfaces [surface] = this; } }