Share via


BitmapContent.TryCopyTo Method

Note

This method is available only when developing for Windows.

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

Syntax

'Declaration
Protected MustOverride Function TryCopyTo ( _
         destinationBitmap As BitmapContent, _
         sourceRegion As Rectangle, _
         destinationRegion As Rectangle _
) As Boolean 
protected abstract bool TryCopyTo (
         BitmapContent destinationBitmap,
         Rectangle sourceRegion,
         Rectangle destinationRegion
)
protected:
bool TryCopyTo(
         BitmapContent destinationBitmap,
         Rectangle sourceRegion,
         Rectangle destinationRegion
) abstract

Parameters

Return Value

Type: Boolean
true if region copy is supported; false otherwise.

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