예제 #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);
        }
예제 #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);
        }
예제 #3
0
파일: Canvas.cs 프로젝트: mwgoldsmith/caca
 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;
 }
예제 #4
0
파일: Canvas.cs 프로젝트: mwgoldsmith/caca
 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;
 }