コード例 #1
0
ファイル: Surface.cs プロジェクト: 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));
        }
コード例 #2
0
ファイル: Surface.cs プロジェクト: 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));
        }
コード例 #3
0
ファイル: NativeMethods.cs プロジェクト: guytp/ztk
 internal static extern IntPtr cairo_image_surface_create_for_data(IntPtr data, Ztk.Drawing.Format format, int width, int height, int stride);
コード例 #4
0
ファイル: ImageSurface.cs プロジェクト: guytp/ztk
 public ImageSurface(ref byte[] data, Ztk.Drawing.Format format, int width, int height, int stride)
     : this(data, format, width, height, stride)
 {
 }
コード例 #5
0
ファイル: NativeMethods.cs プロジェクト: guytp/ztk
 internal static extern IntPtr cairo_image_surface_create(Ztk.Drawing.Format format, int width, int height);