C# 클래스 TagTool.Common.DdsHeader

Represents the header of a DirectDraw Surface (DDS) file.
파일 보기 프로젝트 열기: TheGuardians/TagTool 1 사용 예제들

공개 메소드들

메소드 설명
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