BitmapContent Class (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Provides properties and methods for creating and maintaining a bitmap resource.
System.Object
   Microsoft.Xna.Framework.Content.Pipeline.ContentItem
      Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
      More...

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 abstract class BitmapContent : ContentItem

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The BitmapContent type exposes the following members.

  Platforms Name Description
BitmapContent() Initializes a new instance of BitmapContent. 
BitmapContent(int, int) Initializes a new instance of BitmapContent with the specified width or height. 
Top
  Platforms Name Description
Height Gets or sets the height of the bitmap, in pixels. 
Identity Gets or sets the identity of the content item. (Inherited from ContentItem.)
Name Gets or sets the name of the content item. (Inherited from ContentItem.)
OpaqueData Gets the opaque data of the content item. (Inherited from ContentItem.)
Width Gets or sets the width of the bitmap, in pixels. 
Top
  Platforms Name Description
Copy(BitmapContent, BitmapContent) 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. 
Copy(BitmapContent, Rectangle, BitmapContent, Rectangle) 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. 
GetPixelData Reads encoded bitmap content. 
SetPixelData Writes encoded bitmap content. 
ToString Returns a string description of the bitmap resource. (Overrides object.ToString().)
TryCopyFrom Attempts to copy a region from a specified bitmap. 
TryCopyTo Attempts to copy a region of the specified bitmap onto another. 
TryGetFormat Gets the corresponding GPU texture format for the specified bitmap type. 
ValidateCopyArguments Validates the arguments to the Copy function. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop