Share via


BitmapContent.ValidateCopyArguments Method

Validates the arguments to the Copy function.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

protected static void ValidateCopyArguments (
         BitmapContent sourceBitmap,
         Rectangle sourceRegion,
         BitmapContent destinationBitmap,
         Rectangle destinationRegion
)

Parameters

  • sourceBitmap
    BitmapContent being copied.
  • sourceRegion
    Location of sourceBitmap.
  • destinationBitmap
    BitmapContent being overwritten.
  • destinationRegion
    Region of bitmap to be overwritten.

Remarks

Override this method to verify arguments from custom implementations of TryCopyFrom and TryCopyTo for your derived type.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista