共用方式為


DxtBitmapContent.TryCopyTo Method

Note

This method is available only when developing for Windows.

Attempts to copy the specified region to another.

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 being copied to.
  • sourceRegion
    Type: Rectangle
    Region of source bitmap being copied from.
  • destinationRegion
    Type: Rectangle
    Region of destination bitmap.

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