共用方式為


BitmapContent.Copy Method (BitmapContent, BitmapContent)

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, _
         destinationBitmap As BitmapContent _
)
public static void Copy (
         BitmapContent sourceBitmap,
         BitmapContent destinationBitmap
)
public:
static void Copy(
         BitmapContent sourceBitmap,
         BitmapContent destinationBitmap
)

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