Ejemplo n.º 1
0
        public int ditherBitmap(Rectangle r, Dither d, object data)
        {
            GCHandle gch = GCHandle.Alloc(data, GCHandleType.Pinned);
            int      ret = caca_dither_bitmap(_c_cv, r.X, r.Y, r.Width, r.Height,
                                              d._dither, gch.AddrOfPinnedObject());

            gch.Free();
            return(ret);
        }
Ejemplo n.º 2
0
        public int ditherBitmap(int x, int y, int w, int h,
                                Dither d, object data)
        {
            GCHandle gch = GCHandle.Alloc(data, GCHandleType.Pinned);
            int      ret = caca_dither_bitmap(_c_cv, x, y, w, h, d._dither,
                                              gch.AddrOfPinnedObject());

            gch.Free();
            return(ret);
        }
Ejemplo n.º 3
0
 public int ditherBitmap(int x, int y, int w, int h,
                         Dither d, object data)
 {
     GCHandle gch = GCHandle.Alloc(data, GCHandleType.Pinned);
     int ret = caca_dither_bitmap(_c_cv, x, y, w, h, d._dither,
                                   gch.AddrOfPinnedObject());
     gch.Free();
     return ret;
 }
Ejemplo n.º 4
0
 public int ditherBitmap(Rectangle r, Dither d, object data)
 {
     GCHandle gch = GCHandle.Alloc(data, GCHandleType.Pinned);
     int ret = caca_dither_bitmap(_c_cv, r.X, r.Y, r.Width, r.Height,
                                   d._dither, gch.AddrOfPinnedObject());
     gch.Free();
     return ret;
 }