public static extern BOOL ReleaseDC(HWnd window, HDc dc);
public BOOL BitBlt(RECT destRect, HDc source, int srcX, int srcY) { System.Drawing.Rectangle r = destRect; return(BitBlt(r.X, r.Y, r.Width, r.Height, source, srcX, srcY, RasterOperation.SourceCopy)); }
public BOOL BitBlt(int x, int y, int width, int height, HDc source, int srcX, int srcY) { return(Gdi.BitBlt(this, x, y, width, height, source, srcX, srcY, RasterOperation.SourceCopy)); }
public BOOL MaskBlt(RECT destRect, HDc source, int srcX, int srcY, HBitmap mask, int maskX, int maskY) { System.Drawing.Rectangle d = destRect; return(Gdi.MaskBlt(this, d.X, d.Y, d.Width, d.Height, source, srcX, srcY, mask, maskX, maskY, (RasterOperation)(0xCCAA0020))); }
public BOOL MaskBlt(int destX, int destY, int width, int height, HDc source, int srcX, int srcY, HBitmap mask, int maskX, int maskY, Windows.Enum.RasterOperation foreblend, Windows.Enum.RasterOperation backblend) { return(Gdi.MaskBlt(this, destX, destY, width, height, source, srcX, srcY, mask, maskX, maskY, Gdi.CombineForMskBlt(foreblend, backblend))); }
public BOOL StretchBlt(int x, int y, int width, int height, HDc source, int srcX, int srcY, int srcWidth, int srcHeight) { return(Gdi.StretchBlt(this, x, y, width, height, source, srcX, srcY, srcWidth, srcHeight, RasterOperation.SourceCopy)); }
public BOOL StretchBlt(RECT destRect, HDc source, int srcX, int srcY) { System.Drawing.Rectangle d = destRect; System.Drawing.Rectangle s = destRect; return(StretchBlt(d.X, d.Y, d.Width, d.Height, source, s.X, s.Y, s.Width, s.Height, RasterOperation.SourceCopy)); }
public BOOL StretchBlt(RECT destRect, HDc source, RECT srcRect, RasterOperation blend) { System.Drawing.Rectangle d = destRect; System.Drawing.Rectangle s = destRect; return(StretchBlt(d.X, d.Y, d.Width, d.Height, source, s.X, s.Y, s.Width, s.Height, blend)); }