cairo_image_surface_create_for_data() приватный Метод

private cairo_image_surface_create_for_data ( IntPtr data, Cairo format, int width, int height, int stride ) : IntPtr
data System.IntPtr
format Cairo
width int
height int
stride int
Результат System.IntPtr
Пример #1
0
 public ImageSurface(IntPtr data, Cairo.Format format, int width, int height, int stride)
 {
     surface = NativeMethods.cairo_image_surface_create_for_data(data, format, width, height, stride);
     lock (surfaces.SyncRoot){
         surfaces [surface] = this;
     }
 }
Пример #2
0
        public static Cairo.Surface CreateForImage(
            ref byte[] data, Cairo.Format format, int width, int height, int stride)
        {
            IntPtr p = NativeMethods.cairo_image_surface_create_for_data(
                data, format, width, height, stride);

            return(new Cairo.Surface(p, true));
        }
Пример #3
0
 public ImageSurface(IntPtr data, Format format, int width, int height, int stride)
     : base(NativeMethods.cairo_image_surface_create_for_data(data, format, width, height, stride), true)
 {
 }