CalendarView for WinForms
Copy(DeviceContext,Rectangle,Point,RasterOperationCode) メソッド

C1.Win.C1Input.4.5.2 アセンブリ > C1.Framework.Drawing.Gdi.DeviceContexts 名前空間 > DeviceContext クラス > Copy メソッド : Copy(DeviceContext,Rectangle,Point,RasterOperationCode) メソッド
The source DeviceContext object.
A System.Drawing.Rectangle indicates the destination rectangle.
A System.Drawing.Point indicates the upper-left corner of source rectangle. The width and height of source rectangle are same as the destination rectangle.
A RasterOperationCode indicates the raster operation code.
Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source DeviceContext object into a destination DeviceContext object.
シンタックス
'宣言
 
Public Overloads Overridable Sub Copy( _
   ByVal deviceContext As DeviceContext, _
   ByVal destRectangle As System.Drawing.Rectangle, _
   ByVal srcPoint As System.Drawing.Point, _
   ByVal rop As RasterOperationCode _
) 
public virtual void Copy( 
   DeviceContext deviceContext,
   System.Drawing.Rectangle destRectangle,
   System.Drawing.Point srcPoint,
   RasterOperationCode rop
)

パラメータ

deviceContext
The source DeviceContext object.
destRectangle
A System.Drawing.Rectangle indicates the destination rectangle.
srcPoint
A System.Drawing.Point indicates the upper-left corner of source rectangle. The width and height of source rectangle are same as the destination rectangle.
rop
A RasterOperationCode indicates the raster operation code.
例外
例外解説
Defines an exception class to handle the system error.
解説

Copy only does clipping on the destination DC.

If a rotation or shear transformation is in effect in the source device context, Copy will throw a C1.Framework.SystemErrorException. If other transformations exist in the source device context (and a matching transformation is not in effect in the destination device context), the rectangle in the destination device context is stretched, compressed, or rotated, as necessary.

If the color formats of the source and destination device contexts do not match, the Copy function converts the source color format to match the destination format.

When an enhanced metafile is being recorded, an error occurs if the source device context identifies an enhanced-metafile device context. it means a C1.Framework.SystemErrorException would be throw out.

Not all devices support the Copy function. For more information, see the RC_BITBLT raster capability entry in the GetDeviceCaps function as well as the following: MaskBlt, PlgBlt, and StretchBlt.

参照

DeviceContext クラス
DeviceContext メンバ
オーバーロード一覧