C# 클래스 CSharpImageLibrary.Headers.DDS_Header

Contains header information about a DDS File.
상속: AbstractHeader
파일 보기 프로젝트 열기: KFreon/CSharpImageLibrary 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
dwCaps2 int
dwCaps3 int
dwCaps4 int
dwReserved1 int[]
dwReserved2 int

공개 메소드들

메소드 설명
DDS_Header ( Stream stream ) : System

Read Header from DDS Image.

DDS_Header ( int Mips, int Height, int Width, ImageEngineFormat surfaceformat, List customMasks = null ) : System

Creates a DDS header from a set of information.

DetermineDDSSurfaceFormat ( DDS_Header ddspf ) : ImageEngineFormat

Determines DDS Surface Format given the header.

WriteToArray ( byte destination, int index ) : void

Writes header to destination array starting at index.

보호된 메소드들

메소드 설명
Load ( Stream stream ) : long

Reads DDS header from stream.

비공개 메소드들

메소드 설명
CheckIdentifier ( byte IDBlock ) : bool
DDS_FlagStringify ( Type enumType ) : string
ParseFormatToFourCC ( ImageEngineFormat format ) : FourCC
ParseFourCC ( FourCC fourCC, DXGI_FORMAT additionalDX10 = DXGI_FORMAT.DXGI_FORMAT_UNKNOWN ) : ImageEngineFormat

Determines friendly format from FourCC, with additional DXGI/DX10 format.

메소드 상세

DDS_Header() 공개 메소드

Read Header from DDS Image.
public DDS_Header ( Stream stream ) : System
stream Stream Fully formatted DDS image.
리턴 System

DDS_Header() 공개 메소드

Creates a DDS header from a set of information.
public DDS_Header ( int Mips, int Height, int Width, ImageEngineFormat surfaceformat, List customMasks = null ) : System
Mips int Number of mipmaps.
Height int Height of top mipmap.
Width int Width of top mipmap.
surfaceformat ImageEngineFormat Format header represents.
customMasks List Custom user defined masks for colours.
리턴 System

DetermineDDSSurfaceFormat() 공개 정적인 메소드

Determines DDS Surface Format given the header.
public static DetermineDDSSurfaceFormat ( DDS_Header ddspf ) : ImageEngineFormat
ddspf DDS_Header DDS PixelFormat structure.
리턴 ImageEngineFormat

Load() 보호된 메소드

Reads DDS header from stream.
protected Load ( Stream stream ) : long
stream Stream Fully formatted DDS image.
리턴 long

WriteToArray() 공개 메소드

Writes header to destination array starting at index.
public WriteToArray ( byte destination, int index ) : void
destination byte Array to write header to.
index int Index in destination to start writing at.
리턴 void

프로퍼티 상세

dwCaps2 공개적으로 프로퍼티

Don't think it's used.
public int dwCaps2
리턴 int

dwCaps3 공개적으로 프로퍼티

Don't think it's used.
public int dwCaps3
리턴 int

dwCaps4 공개적으로 프로퍼티

Don't think it's used.
public int dwCaps4
리턴 int

dwReserved1 공개적으로 프로퍼티

Not used, as per Windows DDS spec.
public int[] dwReserved1
리턴 int[]

dwReserved2 공개적으로 프로퍼티

Not used as per Windows DDS spec.
public int dwReserved2
리턴 int