Table of Contents

Enum PixelFormat

Namespace
WoWLib.Formats.BLP
Assembly
WoWLib.dll

The client-side pixel format hint (the header's preferredFormat byte). For DXT-encoded files it selects the block format: Dxt1 -> BC1, Dxt3 -> BC2, Dxt5 -> BC3, Bc5 -> BC5.

public enum PixelFormat : byte

Fields

A8 = 6

Alpha-only upload hint; never a file content layout.

Argb1555 = 3

16-bit 1555 upload hint; never a file content layout.

Argb2565 = 9

Component-texture upload hint; never a file content layout.

Argb4444 = 4

16-bit 4444 upload hint; never a file content layout.

Argb8888 = 2

Raw 32-bit upload hint (used by Bgra-encoded files).

Bc5 = 11

BC5: two interpolated channels (normal maps, later clients).

Dxt1 = 0

BC1: 8-byte blocks, optional 1-bit punch-through alpha.

Dxt3 = 1

BC2: 16-byte blocks, explicit 4-bit alpha.

Dxt5 = 7

BC3: 16-byte blocks, interpolated 8-bit alpha.

Rgb565 = 5

16-bit 565 upload hint; never a file content layout.

Unspecified = 8

No preference recorded (typical for palettized files).