BitmapContent.ValidateCopyArguments Method
Note
This method is available only when developing for Windows.
Validates the arguments to the Copy function.
Syntax
'Declaration
Protected Shared Sub ValidateCopyArguments ( _
sourceBitmap As BitmapContent, _
sourceRegion As Rectangle, _
destinationBitmap As BitmapContent, _
destinationRegion As Rectangle _
)
protected static void ValidateCopyArguments (
BitmapContent sourceBitmap,
Rectangle sourceRegion,
BitmapContent destinationBitmap,
Rectangle destinationRegion
)
protected:
static void ValidateCopyArguments(
BitmapContent sourceBitmap,
Rectangle sourceRegion,
BitmapContent destinationBitmap,
Rectangle destinationRegion
)
Parameters
- sourceBitmap
Type: BitmapContent
BitmapContent being copied. - sourceRegion
Type: Rectangle
Location of sourceBitmap. - destinationBitmap
Type: BitmapContent
BitmapContent being overwritten. - destinationRegion
Type: Rectangle
Region of bitmap to be overwritten.
Remarks
Override this method to verify arguments from custom implementations of TryCopyFrom and TryCopyTo for your derived type.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
BitmapContent Class
BitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP