C# Класс TagTool.Common.DdsHeader

Represents the header of a DirectDraw Surface (DDS) file.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DdsHeader ( ) : System
Read ( Stream stream ) : DdsHeader

Reads a DDS header from a stream. On return, the stream will be positioned at the beginning of the texture data.

WriteTo ( Stream stream ) : void

Writes the DDS header to a stream. On return, the stream will be positioned where the texture data should go.

Приватные методы

Метод Описание
CalculateFormatFlags ( ) : DdsFormatFlags
CalculateHeaderFlags ( ) : DdsFlags
CalculateSurfaceComplexityFlags ( ) : DdsSurfaceComplexityFlags
ReadDdsD3D10Header ( BinaryReader reader ) : void
ReadDdsHeader ( BinaryReader reader ) : void
ReadDdsPixelFormat ( BinaryReader reader ) : void
WriteDdsD3D10Header ( BinaryWriter writer ) : void
WriteDdsHeader ( BinaryWriter writer ) : void
WriteDdsPixelFormat ( BinaryWriter writer ) : void

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

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

public DdsHeader ( ) : System
Результат System

Read() публичный статический Метод

Reads a DDS header from a stream. On return, the stream will be positioned at the beginning of the texture data.
Thrown if the DDS header is invalid.
public static Read ( Stream stream ) : DdsHeader
stream Stream The stream to read from.
Результат DdsHeader

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

Writes the DDS header to a stream. On return, the stream will be positioned where the texture data should go.
Thrown if an error occurs while saving.
public WriteTo ( Stream stream ) : void
stream Stream The stream to write to.
Результат void