PixelBitmapContent<T>.TryCopyTo Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Attempts to copy a region of the specified bitmap onto another.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
protected bool TryCopyTo( BitmapContent destinationBitmap, Rectangle sourceRegion, Rectangle destinationRegion )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- destinationBitmap
-
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
BitmapContent being overwritten.
- sourceRegion
-
Type: Microsoft.Xna.Framework.Rectangle
Location of the source bitmap.
- destinationRegion
-
Type: Microsoft.Xna.Framework.Rectangle
Region of destination bitmap to be overwritten.
Return Value
Type: System.Booleantrue if region copy is supported; false otherwise.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop