Share via


BitmapContent.TryCopyTo Method

Attempts to copy a region of the specified bitmap onto another.

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

Syntax

protected virtual abstract bool TryCopyTo (
         BitmapContent destinationBitmap,
         Rectangle sourceRegion,
         Rectangle destinationRegion
)

Parameters

  • destinationBitmap
    BitmapContent being overwritten.
  • sourceRegion
    Location of the source bitmap.
  • destinationRegion
    Region of destination bitmap to be overwritten.

Return Value

true if region copy is supported; false otherwise.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista