Class AtcBitmapContent
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
Provides properties and methods for creating and maintaining an ATC compressed bitmap resource.
public abstract class AtcBitmapContent : BitmapContent
- Inheritance
-
AtcBitmapContent
- Derived
- Inherited Members
Constructors
AtcBitmapContent()
Initializes a new instance of AtcBitmapContent.
public AtcBitmapContent()
AtcBitmapContent(int, int)
Initializes a new instance of AtcBitmapContent with the specified width or height.
public AtcBitmapContent(int width, int height)
Parameters
width
intWidth, in pixels, of the bitmap resource.
height
intHeight, in pixels, of the bitmap resource.
Methods
GetPixelData()
Reads encoded bitmap content.
public override byte[] GetPixelData()
Returns
- byte[]
Array containing encoded bitmap data.
SetPixelData(byte[])
Writes encoded bitmap content.
public override void SetPixelData(byte[] sourceData)
Parameters
sourceData
byte[]Array containing encoded bitmap data to be set.
TryCopyFrom(BitmapContent, Rectangle, Rectangle)
Attempts to copy a region from a specified bitmap.
protected override bool TryCopyFrom(BitmapContent sourceBitmap, Rectangle sourceRegion, Rectangle destinationRegion)
Parameters
sourceBitmap
BitmapContentBitmapContent being copied.
sourceRegion
RectangleLocation of sourceBitmap.
destinationRegion
RectangleRegion of destination bitmap to be overwritten.
Returns
- bool
true if region copy is supported; false otherwise.
TryCopyTo(BitmapContent, Rectangle, Rectangle)
Attempts to copy a region of the specified bitmap onto another.
protected override bool TryCopyTo(BitmapContent destinationBitmap, Rectangle sourceRegion, Rectangle destinationRegion)
Parameters
destinationBitmap
BitmapContentBitmapContent being overwritten.
sourceRegion
RectangleLocation of the source bitmap.
destinationRegion
RectangleRegion of destination bitmap to be overwritten.
Returns
- bool
true if region copy is supported; false otherwise.