Ejemplo n.º 1
0
        public static BOOL BitBlt(
            HDC hdc,
            int x,
            int y,
            int cx,
            int cy,
            IHandle hdcSrc,
            int x1,
            int y1,
            ROP rop)
        {
            BOOL result = BitBlt(
                hdc,
                x,
                y,
                cx,
                cy,
                (HDC)hdcSrc.Handle,
                x1,
                y1,
                rop);

            GC.KeepAlive(hdcSrc);
            return(result);
        }
Ejemplo n.º 2
0
        public static BOOL BitBlt(
            HandleRef hdc,
            int x,
            int y,
            int cx,
            int cy,
            HandleRef hdcSrc,
            int x1,
            int y1,
            ROP rop)
        {
            BOOL result = BitBlt(
                hdc.Handle,
                x,
                y,
                cx,
                cy,
                hdcSrc.Handle,
                x1,
                y1,
                rop
                );

            GC.KeepAlive(hdc.Wrapper);
            GC.KeepAlive(hdcSrc.Wrapper);
            return(result);
        }
Ejemplo n.º 3
0
 public static partial BOOL BitBlt(
     HDC hdc,
     int x,
     int y,
     int cx,
     int cy,
     HDC hdcSrc,
     int x1,
     int y1,
     ROP rop);
Ejemplo n.º 4
0
 public static extern BOOL BitBlt(
     IntPtr hdc,
     int x,
     int y,
     int cx,
     int cy,
     IntPtr hdcSrc,
     int x1,
     int y1,
     ROP rop);
Ejemplo n.º 5
0
 public static extern BOOL BitBlt(
     HDC hdc,
     int x,
     int y,
     int cx,
     int cy,
     HDC hdcSrc,
     int x1,
     int y1,
     ROP rop);
        public JsonResult GetHistory(string job)
        {
            var rnd = new System.Random(99);
            var history = new ROP[]{
                              new ROP(){ A = 12, B= 13, Res= 25, OP = "+"},
                                new ROP(){ A = 12, B= 13, Res= -1, OP = "-"},
                                  new ROP(){ A = 2, B= 1, Res= rnd.Next(1, 100) , OP = "*"},
                          };

            var res = Newtonsoft.Json.JsonConvert.SerializeObject(history);

            return Json(res, JsonRequestBehavior.AllowGet);
        }
Ejemplo n.º 7
0
 public static extern BOOL PatBlt(IntPtr hdc, int x, int y, int w, int h, ROP rop);
Ejemplo n.º 8
0
 public static extern IntPtr SetROP2(IntPtr hDC, ROP rop);
 public static extern bool BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, ROP dwRop);
Ejemplo n.º 10
0
 public static extern BOOL PatBlt(HDC hdc, int x, int y, int w, int h, ROP rop);
Ejemplo n.º 11
0
 public static partial BOOL PatBlt(HDC hdc, int x, int y, int w, int h, ROP rop);