Пример #1
0
 public static extern BOOL ReleaseDC(HWnd window, HDc dc);
Пример #2
0
 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));
 }
Пример #3
0
 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));
 }
Пример #4
0
 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)));
 }
Пример #5
0
 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)));
 }
Пример #6
0
 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));
 }
Пример #7
0
 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));
 }
Пример #8
0
 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));
 }