C# 클래스 Warcraft.BLP.BLPHeader

This class represents a file header for a binary BLP image. Its primary function is to map the rest of the data in a meaningful way, and describe the image format the BLP image is stored as.
파일 보기 프로젝트 열기: Nihlus/libwarcraft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AlphaBitDepth uint
CompressionType TextureCompressionType
Format BLPFormat
MipMapOffsets List
MipMapSizes List
MipMapType uint
PixelFormat BLPPixelFormat
Resolution Resolution
Signature string
Version uint

공개 메소드들

메소드 설명
BLPHeader ( ) : System

Initializes a new instance of the Warcraft.BLP.BLPHeader class. This constructor creates a template header, ready to be filled with data about a new file.

BLPHeader ( byte InData ) : System

Initializes a new instance of the Warcraft.BLP.BLPHeader class. This constructor creates a header from input data read from a BLP file. Usually, this is 148 bytes.

GetNumMipMaps ( ) : int

Gets the number of mipmaps defined in the header.

GetSize ( ) : uint

Gets the size of a complete header. This is always 148 bytes, since the offset and size lists are padded.

ToByteArray ( ) : byte[]

Gets the data in the header as a byte array, ready to be written to a file.

메소드 상세

BLPHeader() 공개 메소드

Initializes a new instance of the Warcraft.BLP.BLPHeader class. This constructor creates a template header, ready to be filled with data about a new file.
public BLPHeader ( ) : System
리턴 System

BLPHeader() 공개 메소드

Initializes a new instance of the Warcraft.BLP.BLPHeader class. This constructor creates a header from input data read from a BLP file. Usually, this is 148 bytes.
public BLPHeader ( byte InData ) : System
InData byte Data.
리턴 System

GetNumMipMaps() 공개 메소드

Gets the number of mipmaps defined in the header.
public GetNumMipMaps ( ) : int
리턴 int

GetSize() 공개 메소드

Gets the size of a complete header. This is always 148 bytes, since the offset and size lists are padded.
public GetSize ( ) : uint
리턴 uint

ToByteArray() 공개 메소드

Gets the data in the header as a byte array, ready to be written to a file.
public ToByteArray ( ) : byte[]
리턴 byte[]

프로퍼티 상세

AlphaBitDepth 공개적으로 프로퍼티

The alpha bit depth of the mipmaps. Depends on the compression type.
public uint AlphaBitDepth
리턴 uint

CompressionType 공개적으로 프로퍼티

The type of the compression used for the mipmaps stored in the BLP file.
public TextureCompressionType CompressionType
리턴 TextureCompressionType

Format 공개적으로 프로퍼티

public BLPFormat Format
리턴 BLPFormat

MipMapOffsets 공개적으로 프로퍼티

A list of offsets to the start of each mipmap.
public List MipMapOffsets
리턴 List

MipMapSizes 공개적으로 프로퍼티

A list of sizes for each mipmap.
public List MipMapSizes
리턴 List

MipMapType 공개적으로 프로퍼티

The type of the mip map stored in the image.
public uint MipMapType
리턴 uint

PixelFormat 공개적으로 프로퍼티

The pixel format of the compressed textures.
public BLPPixelFormat PixelFormat
리턴 BLPPixelFormat

Resolution 공개적으로 프로퍼티

The resolution of the image.
public Resolution Resolution
리턴 Resolution

Signature 공개적으로 프로퍼티

The binary signature of a BLP file.
public string Signature
리턴 string

Version 공개적으로 프로퍼티

The version of the BLP file.
public uint Version
리턴 uint