PixelBitmapContent.TryCopyFrom Method
Note
This method is available only when developing for Windows.
Attempts to copy a region from the specified bitmap.
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 content being copied. - sourceRegion
Type: Rectangle
Location of the upper-left region of sourceBitmap being copied from. - destinationRegion
Type: Rectangle
Region of destination bitmap to be overwritten.
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