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...
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)
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. |
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. |
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. |
System.Object
Microsoft.Xna.Framework.Content.Pipeline.ContentItem
Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AtcBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AtcExplicitBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AtcInterpolatedBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.DxtBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Dxt1BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Dxt3BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Dxt5BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Etc1BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PixelBitmapContent<T>
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgb2BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgb4BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgba2BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgba4BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.ContentItem
Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AtcBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AtcExplicitBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AtcInterpolatedBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.DxtBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Dxt1BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Dxt3BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Dxt5BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.Etc1BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PixelBitmapContent<T>
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcBitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgb2BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgb4BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgba2BitmapContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.PvrtcRgba4BitmapContent
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop