C# Класс Glare.Assets.Formats.DdsFormat.PixelFormat

Describes the pixel format.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Flags PixelFormatFlags
FourCC string
RBitMask int
RGBBitCount int

Открытые методы

Метод Описание
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.

Описание методов

MatchMasks() публичный Метод

Get whether the masks match.
public MatchMasks ( int rMask, int gMask, int bMask ) : bool
rMask int
gMask int
bMask int
Результат bool

MatchMasks() публичный Метод

Get whether the masks match.
public MatchMasks ( int rMask, int gMask, int bMask, int aMask ) : bool
rMask int
gMask int
bMask int
aMask int
Результат bool

PixelFormat() публичный Метод

Read the pixel format.
public PixelFormat ( BinaryReader reader ) : System
reader System.IO.BinaryReader
Результат System

PixelFormat() публичный Метод

Create the pixel format.
public PixelFormat ( System.Text.Format format ) : System
format System.Text.Format
Результат System

Write() публичный Метод

Write the pixel format.
public Write ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

Описание свойств

Flags публичное свойство

Flags for the pixel format.
public PixelFormatFlags Flags
Результат PixelFormatFlags

FourCC публичное свойство

Four character identifier of the pixel format.
public string FourCC
Результат string

RBitMask публичное свойство

Masks for each component.
public int RBitMask
Результат int

RGBBitCount публичное свойство

The number of bits in the colour parts.
public int RGBBitCount
Результат int