Back to monogame.net
Show / Hide Table of Contents

Class Etc1BitmapContent

Supports the processing of a texture compressed using ETC1.

Inheritance
Object
ContentItem
BitmapContent
Etc1BitmapContent
Inherited Members
BitmapContent.Height
BitmapContent.Width
BitmapContent.Copy(BitmapContent, BitmapContent)
BitmapContent.Copy(BitmapContent, Rectangle, BitmapContent, Rectangle)
BitmapContent.ValidateCopyArguments(BitmapContent, Rectangle, BitmapContent, Rectangle)
ContentItem.Identity
ContentItem.Name
ContentItem.OpaqueData
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
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
BitmapContent.GetPixelData()

SetPixelData(Byte[])

Declaration
public override void SetPixelData(byte[] sourceData)
Parameters
Type Name Description
Byte[] sourceData
Overrides
BitmapContent.SetPixelData(Byte[])

ToString()

Returns a string description of the bitmap.

Declaration
public override string ToString()
Returns
Type Description
String

Description of the bitmap.

Overrides
BitmapContent.ToString()

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
BitmapContent.TryCopyFrom(BitmapContent, Rectangle, Rectangle)

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
BitmapContent.TryCopyTo(BitmapContent, Rectangle, Rectangle)

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.

Overrides
BitmapContent.TryGetFormat(out SurfaceFormat)
In This Article
Back to top

© 2012 Microsoft Corporation. All rights reserved.

© The MonoGame Team.