Version

CopyGraphics Method

Copies the contents of one graphics object to another based on the supplied source rectangle and destination point.
Syntax
'Declaration
 
Public Shared Function CopyGraphics( _
   ByVal destGraphics As Graphics, _
   ByVal destLocation As Point, _
   ByVal sourceGraphics As Graphics, _
   ByVal sourceRect As Rectangle _
) As Boolean
public static bool CopyGraphics( 
   Graphics destGraphics,
   Point destLocation,
   Graphics sourceGraphics,
   Rectangle sourceRect
)

Parameters

destGraphics
The graphics object to which the contents will be copied
destLocation
The location within the destination graphics where the contents will be copied.
sourceGraphics
The graphics object whose contents will be copied
sourceRect
The rectangle within the source graphics object from which the contents will be copied

Return Value

Returns true if the copy was successfull.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also