C# Class Glare.Assets.Formats.DdsFormat.PixelFormat

Describes the pixel format.
Afficher le fichier Open project: Burton-Radons/Alexandria

Méthodes publiques

Свойство Type Description
Flags PixelFormatFlags
FourCC string
RBitMask int
RGBBitCount int

Méthodes publiques

Méthode Description
MatchMasks ( int rMask, int gMask, int bMask ) : bool

Get whether the masks match.

MatchMasks ( int rMask, int gMask, int bMask, int aMask ) : bool

Get whether the masks match.

PixelFormat ( BinaryReader reader ) : System

Read the pixel format.

PixelFormat ( System.Text.Format format ) : System

Create the pixel format.

Write ( BinaryWriter writer ) : void

Write the pixel format.

Method Details

MatchMasks() public méthode

Get whether the masks match.
public MatchMasks ( int rMask, int gMask, int bMask ) : bool
rMask int
gMask int
bMask int
Résultat bool

MatchMasks() public méthode

Get whether the masks match.
public MatchMasks ( int rMask, int gMask, int bMask, int aMask ) : bool
rMask int
gMask int
bMask int
aMask int
Résultat bool

PixelFormat() public méthode

Read the pixel format.
public PixelFormat ( BinaryReader reader ) : System
reader System.IO.BinaryReader
Résultat System

PixelFormat() public méthode

Create the pixel format.
public PixelFormat ( System.Text.Format format ) : System
format System.Text.Format
Résultat System

Write() public méthode

Write the pixel format.
public Write ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

Property Details

Flags public_oe property

Flags for the pixel format.
public PixelFormatFlags Flags
Résultat PixelFormatFlags

FourCC public_oe property

Four character identifier of the pixel format.
public string FourCC
Résultat string

RBitMask public_oe property

Masks for each component.
public int RBitMask
Résultat int

RGBBitCount public_oe property

The number of bits in the colour parts.
public int RGBBitCount
Résultat int