public virtual bool BitBlt(int x, int y, int nWidth, int nHeight,
        IntPtr hSrcDC, int xSrc, int ySrc, TernaryRasterOps dwRop)
	{
		bool result = GDI32.BitBlt(this.HDC, x, y, nWidth, nHeight,
							 hSrcDC, xSrc, ySrc, dwRop);
		return result;
	}
	public virtual bool StretchBlt(int x, int y, int width, int height,
				IntPtr srchDC, int srcX, int srcY, int srcWidth, int srcHeight,
                TernaryRasterOps dwRop)
	{
		bool result = GDI32.StretchBlt(this.HDC, x, y, width, height,
			srchDC, srcX, srcY, srcWidth, srcHeight, dwRop);
		return result;
	}
        public virtual bool StretchBlt(GDIContext srcDC, Rectangle srcRect, Rectangle dstRect, TernaryRasterOps dwRop)
        {
            bool result = GDI32.StretchBlt(this, dstRect.Left, dstRect.Top, dstRect.Width, dstRect.Height,
                srcDC, srcRect.Left, srcRect.Top, srcRect.Width, srcRect.Height, (int)dwRop);

            return result;
        }
        public virtual bool PatBlt(int x, int y, int width, int height, TernaryRasterOps rasterOp)
        {
            bool success = GDI32.PatBlt(this, x, y, width, height, (int)rasterOp);

            return success;
        }
        public virtual bool BitBlt(GDIContext srcDC, Point srcPoint, Rectangle dstRect, TernaryRasterOps dwRop)
        {
            bool success = GDI32.BitBlt(this, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height,
                                 srcDC, srcPoint.X, srcPoint.Y, (int)dwRop);

            return success;
        }
Exemple #6
0
 public virtual void StretchBlt(int x, int y, int width, int height,
             GDIContext srcDC, int srcX, int srcY, int srcWidth, int srcHeight,
             TernaryRasterOps dwRop)
 {
     bool success = DeviceContext.StretchBlt(srcDC, new Rectangle(srcX, srcY, srcWidth, srcHeight),
         new Rectangle(x, y, width, height), dwRop);
 }
Exemple #7
0
        //public virtual void BitBlt(int x, int y, GDIDIBitmap bitmap)
        //{
        //    int scansDrawn = DeviceContext.StretchDIBits(bitmap, new Rectangle(0, 0, bitmap.Width, bitmap.Height),
        //        new Rectangle(x, y, bitmap.Width, bitmap.Height), TernaryRasterOps.SRCCOPY);
        //}

        public virtual bool BitBlt(int x, int y, int nWidth, int nHeight,
            GDIContext hSrcDC, int xSrc, int ySrc, TernaryRasterOps dwRop)
        {
            bool success = DeviceContext.BitBlt(hSrcDC, new Point(xSrc, ySrc), new Rectangle(x, y, nWidth, nHeight), dwRop);

            return success;
        }