Class AstcBitmapContent
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
public class AstcBitmapContent : BitmapContent
- Inheritance
-
AstcBitmapContent
- Inherited Members
Constructors
AstcBitmapContent()
Initializes a new instance of AstcBitmapContent.
protected AstcBitmapContent()
AstcBitmapContent(int, int)
Initializes a new instance of AstcBitmapContent with the specified width or height.
public AstcBitmapContent(int width, int height)
Parameters
widthintWidth in pixels of the bitmap resource.
heightintHeight 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
sourceDatabyte[]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
sourceBitmapBitmapContentBitmapContent being copied.
sourceRegionRectangleLocation of sourceBitmap.
destinationRegionRectangleRegion 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
destinationBitmapBitmapContentBitmapContent being overwritten.
sourceRegionRectangleLocation of the source bitmap.
destinationRegionRectangleRegion of destination bitmap to be overwritten.
Returns
- bool
true if region copy is supported; false otherwise.
TryGetFormat(out SurfaceFormat)
Gets the corresponding GPU texture format for the specified bitmap type.
public override bool TryGetFormat(out SurfaceFormat format)
Parameters
formatSurfaceFormatFormat being retrieved.
Returns
- bool
The GPU texture format of the bitmap type.