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

Describes the pixel format.
Exibir arquivo 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_oe property

Flags for the pixel format.
public PixelFormatFlags Flags
return PixelFormatFlags

FourCC public_oe property

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

RBitMask public_oe property

Masks for each component.
public int RBitMask
return int

RGBBitCount public_oe property

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