Table of Contents

Class DxtBitmapContent

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll
public abstract class DxtBitmapContent : BitmapContent
Inheritance
DxtBitmapContent
Derived
Inherited Members

Constructors

DxtBitmapContent(int)

protected DxtBitmapContent(int blockSize)

Parameters

blockSize int

DxtBitmapContent(int, int, int)

protected DxtBitmapContent(int blockSize, int width, int height)

Parameters

blockSize int
width int
height int

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 BitmapContent

BitmapContent being copied.

sourceRegion Rectangle

Location of sourceBitmap.

destinationRegion Rectangle

Region 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 BitmapContent

BitmapContent being overwritten.

sourceRegion Rectangle

Location of the source bitmap.

destinationRegion Rectangle

Region of destination bitmap to be overwritten.

Returns

bool

true if region copy is supported; false otherwise.