DxtBitmapContent.TryCopyFrom Method

Note

This method is available only when developing for Windows.

Attempts to copy from a specified region to another.

Syntax

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

Parameters

  • sourceBitmap
    Type: BitmapContent
    Bitmap being copied from.
  • sourceRegion
    Type: Rectangle
    Region of bitmap being copied.
  • destinationRegion
    Type: Rectangle
    Region being copied to.

Return Value

Type: Boolean
trueif successful; 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

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

Platforms

Windows 7, Windows Vista, Windows XP