Class Etc1BitmapContent
Supports the processing of a texture compressed using ETC1.
Inherited Members
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline.dll
Syntax
public class Etc1BitmapContent : BitmapContent
Constructors
Etc1BitmapContent()
Initializes a new instance of Etc1BitmapContent.
Declaration
protected Etc1BitmapContent()
Etc1BitmapContent(Int32, Int32)
Initializes a new instance of Etc1BitmapContent with the specified width or height.
Declaration
public Etc1BitmapContent(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
Int32 | width | Width in pixels of the bitmap resource. |
Int32 | height | Height in pixels of the bitmap resource. |
Methods
GetPixelData()
Declaration
public override byte[] GetPixelData()
Returns
Type | Description |
---|---|
Byte[] |
Overrides
SetPixelData(Byte[])
Declaration
public override void SetPixelData(byte[] sourceData)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | sourceData |
Overrides
ToString()
Returns a string description of the bitmap.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | Description of the bitmap. |
Overrides
TryCopyFrom(BitmapContent, Rectangle, Rectangle)
Declaration
protected override bool TryCopyFrom(BitmapContent sourceBitmap, Rectangle sourceRegion, Rectangle destinationRegion)
Parameters
Type | Name | Description |
---|---|---|
BitmapContent | sourceBitmap | |
Rectangle | sourceRegion | |
Rectangle | destinationRegion |
Returns
Type | Description |
---|---|
Boolean |
Overrides
TryCopyTo(BitmapContent, Rectangle, Rectangle)
Declaration
protected override bool TryCopyTo(BitmapContent destinationBitmap, Rectangle sourceRegion, Rectangle destinationRegion)
Parameters
Type | Name | Description |
---|---|---|
BitmapContent | destinationBitmap | |
Rectangle | sourceRegion | |
Rectangle | destinationRegion |
Returns
Type | Description |
---|---|
Boolean |
Overrides
TryGetFormat(out SurfaceFormat)
Gets the corresponding GPU texture format for the specified bitmap type.
Declaration
public override bool TryGetFormat(out SurfaceFormat format)
Parameters
Type | Name | Description |
---|---|---|
SurfaceFormat | format | Format being retrieved. |
Returns
Type | Description |
---|---|
Boolean | The GPU texture format of the bitmap type. |