public DirectImage(VisibleSurfaceBase surface, Rectangle bounds, Tilesheet bmp, TernaryRasterOperations rasterOp) : base(surface, bounds) { _tilesheet = bmp; _rasterOp = rasterOp; }
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);
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); } }
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); }
public static extern Boolean BitBlt(IntPtr hObject, Int32 nXDest, Int32 nYDest, Int32 nWidth, Int32 nHeight, IntPtr hObjSource, Int32 nXSrc, Int32 nYSrc, TernaryRasterOperations dwRop);
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);
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);
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);
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 // 光栅的操作值 );
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)); }
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);
public static extern bool BitBlt( IntPtr objectHandle, int destX, int destY, int width, int height, IntPtr objectSourceHandle, int srcX, int srcY, TernaryRasterOperations rop);
[DllImport("gdi32.dll")] public static extern bool PatBlt(HDC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, TernaryRasterOperations dwRop);
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);
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);
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 destHDC, int originDestX, int originDestY, int widthDest, int heightDest, IntPtr srcHDC, int originSrcX, int originSrcY, int widthSrc, int heightSrc, TernaryRasterOperations rop);
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);
public static extern bool BitBlt(VoidPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, VoidPtr hObjSource, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
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);
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 );
public static extern int BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
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); }
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); }
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);
internal static extern bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjSource, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);
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); }