PixelBitmapContent.TryCopyFrom Method
Attempts to copy a region from the specified bitmap.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
protected override bool TryCopyFrom (
BitmapContent sourceBitmap,
Rectangle sourceRegion,
Rectangle destinationRegion
)
Parameters
- sourceBitmap
Bitmap content being copied. - sourceRegion
Location of the upper-left region of sourceBitmap being copied from. - destinationRegion
Region of destination bitmap to be overwritten.
Return Value
true if region copy is supported; false otherwise.
See Also
Reference
PixelBitmapContent Generic Class
PixelBitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista