Наследование: IDisposable
Пример #1
0
 public Display()
 {
     /* XXX: we do not call caca_create_display() with a NULL
      * argument because it's then impossible to create a Canvas
      * and I don't want to add a weird constructor */
     _cv = new Canvas();
     _c_cv = _cv._c_cv;
     _c_dp = caca_create_display(_c_cv);
 }
Пример #2
0
 public int Blit(int x, int y, Canvas cv, Canvas mask)
 {
     return caca_blit(_c_cv, x, y, cv._c_cv, mask._c_cv);
 }
Пример #3
0
 public int Blit(int x, int y, Canvas canvas)
 {
     return caca_blit(_c_cv, x, y, canvas._c_cv, IntPtr.Zero);
 }
Пример #4
0
 public int Blit(Point p, Canvas cv, Canvas mask)
 {
     return caca_blit(_c_cv, p.X, p.Y, cv._c_cv, mask._c_cv);
 }
Пример #5
0
 public int Blit(Point p, Canvas canvas)
 {
     return caca_blit(_c_cv, p.X, p.Y, canvas._c_cv, IntPtr.Zero);
 }
Пример #6
0
 public Display(Canvas cv)
 {
     _cv = cv;
     _c_cv = _cv._c_cv;
     _c_dp = caca_create_display(_c_cv);
 }
Пример #7
0
 public int Render(Canvas cv, uint[,] buf, int pitch)
 {
     GCHandle gch = GCHandle.Alloc(buf, GCHandleType.Pinned);
     int ret = caca_render_canvas(cv._c_cv, _font,
                                   gch.AddrOfPinnedObject(),
                                   buf.GetLength(0), buf.GetLength(1),
                                   pitch);
     gch.Free();
     return ret;
 }