BitmapContent.Copy Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Copies one bitmap into another. The destination bitmap can be in any format and size. If the destination is larger or smaller, the source bitmap is scaled accordingly.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static void Copy(
	BitmapContent sourceBitmap, 
	BitmapContent destinationBitmap
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

sourceBitmap
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
BitmapContent being copied.
destinationBitmap
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
BitmapContent being overwritten.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop