示例#1
0
        public CairoImageSurface(int width, int heigth, CairoFormat format)
        {
            surface = cairo_image_surface_create ((int)format, width, heigth);
            if (surface == IntPtr.Zero)
                throw new ArgumentException ("could not create surface");

            int status = cairo_surface_status (surface);
            if (status != 0) {
                Dispose ();
                throw new ArgumentException ("could not create surface");
            }
        }
示例#2
0
 public static extern IntPtr cairo_image_surface_create(CairoFormat format, int width, int height);