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.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
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