Ejemplo n.º 1
0
Archivo: Surface.cs Proyecto: guytp/ztk
        public static Ztk.Drawing.Surface CreateForImage(
            Ztk.Drawing.Format format, int width, int height)
        {
            IntPtr p = NativeMethods.cairo_image_surface_create(
                format, width, height);

            return(new Ztk.Drawing.Surface(p, true));
        }
Ejemplo n.º 2
0
Archivo: Surface.cs Proyecto: guytp/ztk
        public static Ztk.Drawing.Surface CreateForImage(
            ref byte[] data, Ztk.Drawing.Format format, int width, int height, int stride)
        {
            IntPtr p = NativeMethods.cairo_image_surface_create_for_data(
                data, format, width, height, stride);

            return(new Ztk.Drawing.Surface(p, true));
        }
Ejemplo n.º 3
0
 internal static extern IntPtr cairo_image_surface_create_for_data(IntPtr data, Ztk.Drawing.Format format, int width, int height, int stride);
Ejemplo n.º 4
0
 public ImageSurface(ref byte[] data, Ztk.Drawing.Format format, int width, int height, int stride)
     : this(data, format, width, height, stride)
 {
 }
Ejemplo n.º 5
0
 internal static extern IntPtr cairo_image_surface_create(Ztk.Drawing.Format format, int width, int height);