次の方法で共有


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

Copies one bitmap into another.

The destination bitmap must be the same size or larger than the source, but it can be in any format.

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

Syntax

public static void Copy (
         BitmapContent sourceBitmap,
         Rectangle sourceRegion,
         BitmapContent destinationBitmap,
         Rectangle destinationRegion
)

Parameters

  • sourceBitmap
    BitmapContent being copied.
  • sourceRegion
    Region of sourceBitmap.
  • destinationBitmap
    BitmapContent being overwritten.
  • destinationRegion
    Region of bitmap to be overwritten.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista