Example #1
0
 public DirectImage(VisibleSurfaceBase surface, Rectangle bounds, Tilesheet bmp,
     TernaryRasterOperations rasterOp)
     : base(surface, bounds)
 {
     _tilesheet = bmp;
     _rasterOp = rasterOp;
 }
Example #2
0
 public static extern bool BitBlt(
     [In] IntPtr hdc,
     int nXDest,
     int nYDest,
     int nWidth,
     int nHeight,
     [In] IntPtr hdcSrc,
     int nXSrc,
     int nYSrc,
     TernaryRasterOperations dwRop);
Example #3
0
 public static int DrawBitmap(IntPtr destHdc, int destX, int destY, int destWidth, int destHeight,
     IntPtr srcHdc, int srcX, int srcY, int srcWidth, int srcHeight,
     TernaryRasterOperations dwRop)
 {
     if ((destWidth == srcWidth)
         && (destHeight == srcHeight))
     {
         return pInvoke.BitBlt(destHdc, destX, destY, destWidth, destHeight,
             srcHdc, srcX, srcY, dwRop);
     }
     else
     {
         return pInvoke.StretchBlt(destHdc, destX, destY, destWidth, destHeight,
             srcHdc, srcX, srcY, srcWidth, srcHeight, dwRop);
     }
 }
Example #4
0
        public static int DrawBitmap(IntPtr destHdc, Rectangle destRect,
            IntPtr srcHdc, Rectangle srcRect, TernaryRasterOperations dwRop)
        {
            int destX = destRect.X;
            int destY = destRect.Y;
            int destWidth = destRect.Width;
            int destHeight = destRect.Height;

            int srcX = srcRect.X;
            int srcY = srcRect.Y;
            int srcWidth = srcRect.Width;
            int srcHeight = srcRect.Height;

            return DrawBitmap(destHdc, destX, destY, destWidth, destHeight,
                srcHdc, srcX, srcY, srcWidth, srcHeight, dwRop);
        }
Example #5
0
File: GDI.cs Project: itadapter/nfx
 public static extern Boolean BitBlt(IntPtr hObject, Int32 nXDest, Int32 nYDest, Int32 nWidth, Int32 nHeight, IntPtr hObjSource, Int32 nXSrc, Int32 nYSrc, TernaryRasterOperations dwRop);
Example #6
0
 public static extern bool StretchBlt(IntPtr hdcDst, int xDst, int yDst, int widthDst, int heightDst, IntPtr hdcSrc, int xSrc, int ySrc, int widthSrc, int heightSrc, TernaryRasterOperations ulRop);
Example #7
0
 public static extern Bool StretchBlt(IntPtr hObject, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, IntPtr hObjSource, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, TernaryRasterOperations dwRop);
Example #8
0
 public static extern bool StretchBlt(IntPtr hdcDest, int nxDest, int dyDest, int nWidth, int nHeight, IntPtr hdcSrc, int nxSrc, int nySrc, int nSWidth, int nSHeight, TernaryRasterOperations rop);
Example #9
0
 public static extern bool BitBlt(
 
 IntPtr hdcDest, // 目标设备的句柄
 int nXDest, // 目标对象的左上角的X坐标
 int nYDest, // 目标对象的左上角的Y坐标
 int nWidth, // 目标对象的矩形的宽度
 int nHeight, // 目标对象的矩形的长度
 IntPtr hdcSrc, // 源设备的句柄
 int nXSrc, // 源对象的左上角的X坐标
 int nYSrc, // 源对象的左上角的X坐标
 TernaryRasterOperations dwRop // 光栅的操作值
 );
Example #10
0
 public static bool StretchBlit(IntPtr hdcDestination, int xDst, int yDst, int wDst, int hDst, IntPtr hdcSource, int xSrc, int ySrc, int wSrc, int hSrc, TernaryRasterOperations rasterOp)
 {
     return(Api_Gdi32.StretchBlt(hdcDestination, xDst, yDst, wDst, hDst, hdcSource, xSrc, ySrc, wSrc, hSrc, (uint)rasterOp));
 }
Example #11
0
 public static extern bool StretchBlt(IntPtr hdcDest, int nXDest, int nYDest, int nDestWidth, int nDestHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int nSrcWidth, int nSrcHeight, TernaryRasterOperations dwRop);
Example #12
0
 public static extern bool BitBlt(
   IntPtr objectHandle,
   int destX,
   int destY,
   int width,
   int height,
   IntPtr objectSourceHandle,
   int srcX,
   int srcY,
   TernaryRasterOperations rop);
Example #13
0
 [DllImport("gdi32.dll")]                              public static extern bool   PatBlt(HDC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, TernaryRasterOperations dwRop);
Example #14
0
 public static extern bool PatBlt(IntPtr hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, TernaryRasterOperations dwRop);
 private static extern bool BitBlt(IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
 public static extern bool BitBlt(IntPtr DC, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr SrcDC, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
 internal static extern bool BitBlt(IntPtr hDestDC, int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, TernaryRasterOperations dwRop);
Example #18
0
File: Gdi.cs Project: xorkrus/vk_wm
 public bool BitBlt(int nxDest, int dyDest, int nWidth, int nHeight, IntPtr hdcSrc, int nxSrc, int nySrc, TernaryRasterOperations rop)
 {
     return Win32.BitBlt(_hdc, nxDest, dyDest, nWidth, nHeight, hdcSrc, nxSrc, nySrc, rop);
 }
 public static extern Bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjSource, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #20
0
 public static extern int StretchBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjSource, int nXSrc, int nYSrc, int nSrcWidth, int nSrcHeight, TernaryRasterOperations dwRop);
 public static extern Bool StretchBlt(IntPtr hObject, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, IntPtr hObjSource, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, TernaryRasterOperations dwRop);
Example #22
0
 public static extern bool StretchBlt(
   IntPtr destHDC,
   int originDestX,
   int originDestY,
   int widthDest,
   int heightDest,
   IntPtr srcHDC,
   int originSrcX,
   int originSrcY,
   int widthSrc,
   int heightSrc,
   TernaryRasterOperations rop);
Example #23
0
 public static extern bool StretchBlt(
     IntPtr hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest,
     IntPtr hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc,
     TernaryRasterOperations dwRop);
Example #24
0
 public static extern bool BitBlt(VoidPtr hObject, int nXDest, int nYDest, int nWidth,
     int nHeight, VoidPtr hObjSource, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #25
0
 public static extern bool BitBlt([In] IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, [In] IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #26
0
 public static extern int BitBlt(
     IntPtr hdcDest, // handle to destination DC
     int nXDest,  // x-coord of destination upper-left corner
     int nYDest,  // y-coord of destination upper-left corner
     int nWidth,  // width of destination rectangle
     int nHeight, // height of destination rectangle
     IntPtr hdcSrc,  // handle to source DC
     int nXSrc,   // x-coordinate of source upper-left corner
     int nYSrc,   // y-coordinate of source upper-left corner
     TernaryRasterOperations dwRop  // raster operation code
     );
Example #27
0
 public static extern int BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight,
         IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #28
0
 private static extern bool BitBlt(IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #29
0
 public static extern Boolean BitBlt(IntPtr hObject, Int32 nXDest, Int32 nYDest, Int32 nWidth, Int32 nHeight, IntPtr hObjSource, Int32 nXSrc, Int32 nYSrc, TernaryRasterOperations dwRop);
Example #30
0
 public static bool StretchBlit(IntPtr hdcDestination, int xDst, int yDst, int wDst, int hDst, IntPtr hdcSource, int xSrc, int ySrc, int wSrc, int hSrc, TernaryRasterOperations rasterOp)
 {
     return Api_Gdi32.StretchBlt(hdcDestination, xDst, yDst, wDst, hDst, hdcSource, xSrc, ySrc, wSrc, hSrc, (uint)rasterOp);
 }
Example #31
0
File: Gdi.cs Project: xorkrus/vk_wm
 public bool StretchBlt(int nxDest, int dyDest, int nWidth, int nHeight, Gdi src, int nxSrc, int nySrc, int nSWidth, int nSHeight, TernaryRasterOperations rop)
 {
     return Win32.StretchBlt(_hdc, nxDest, dyDest, nWidth, nHeight, src._hdc, nxSrc, nySrc, nSWidth, nSHeight, rop);
 }
Example #32
0
 public static extern bool StretchBlt(IntPtr hdcDest, int nXOriginDest, int nYOriginDest,
     int nWidthDest, int nHeightDest,
     IntPtr hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc,
     TernaryRasterOperations dwRop);
Example #33
0
 public static extern int BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight,
                                 IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #34
0
 internal static extern bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth,
    int nHeight, IntPtr hObjSource, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
Example #35
0
 public static bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjSource, int nXSrc, int nYSrc, TernaryRasterOperations dwRop)
 {
     NotImplemented(MethodBase.GetCurrentMethod());
     return(true);
 }