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

Describes the pixel format.
Show file Open project: Burton-Radons/Alexandria

Public Properties

Property Type Description
Flags PixelFormatFlags
FourCC string
RBitMask int
RGBBitCount int

Public Methods

Method 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 method

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

MatchMasks() public method

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

PixelFormat() public method

Read the pixel format.
public PixelFormat ( BinaryReader reader ) : System
reader System.IO.BinaryReader
return System

PixelFormat() public method

Create the pixel format.
public PixelFormat ( System.Text.Format format ) : System
format System.Text.Format
return System

Write() public method

Write the pixel format.
public Write ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

Property Details

Flags public property

Flags for the pixel format.
public PixelFormatFlags Flags
return PixelFormatFlags

FourCC public property

Four character identifier of the pixel format.
public string FourCC
return string

RBitMask public property

Masks for each component.
public int RBitMask
return int

RGBBitCount public property

The number of bits in the colour parts.
public int RGBBitCount
return int