(DWORD) Size of BNI header
(WORD) BNI Version
(WORD) Alignment Padding (Unused)
(DWORD) Number of Icons
(DWORD) Data Offset
For each icon:
(DWORD) X Size
(DWORD) Y Size
(DWORD) Products for this icon*
Image in Targa format
The array of dwords for products is empty if the flags field is non-zero, but it's always terminated with a NULL dword.
If you plan on adding support for icons.bni to your client, you may find this document
, written by Kane, useful. This
document, which has more details on the Targa format, may also be helpful.
Developers should be aware that Warcraft III's icons file is not actually a BNI file, but is an MPQ file with a .bni extension.