PixelBitmapContent.TryCopyTo Method

Note

This method is available only when developing for Windows.

Attempts to copy a region to the specified bitmap.

Syntax

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

Parameters

  • destinationBitmap
    Type: BitmapContent
    Bitmap to be copied to.
  • sourceRegion
    Type: Rectangle
    Location of upper-left region to be copied.
  • destinationRegion
    Type: Rectangle
    Target region for the copied content.

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

PixelBitmapContent Generic Class
PixelBitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP