BitmapContent.Copy Method (BitmapContent, Rectangle, BitmapContent, Rectangle)

Note

This method is available only when developing for Windows.

Copies one bitmap into another.

The destination bitmap can be in any format and size. If the destination is larger or smaller, the source bitmap is scaled accordingly.

Syntax

'Declaration
Public Shared Sub Copy ( _
         sourceBitmap As BitmapContent, _
         sourceRegion As Rectangle, _
         destinationBitmap As BitmapContent, _
         destinationRegion As Rectangle _
)
public static void Copy (
         BitmapContent sourceBitmap,
         Rectangle sourceRegion,
         BitmapContent destinationBitmap,
         Rectangle destinationRegion
)
public:
static void Copy(
         BitmapContent sourceBitmap,
         Rectangle sourceRegion,
         BitmapContent destinationBitmap,
         Rectangle destinationRegion
)

Parameters

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

BitmapContent Class
BitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP