コード例 #1
0
 public ImageSurface(Format format, int width, int height)
 {
     surface = CairoAPI.cairo_image_surface_create(format, width, height);
     lock (surfaces.SyncRoot){
         surfaces [surface] = this;
     }
 }
コード例 #2
0
        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));
        }