# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MLA -- Graphics Resource Converter

1 January, 2014

- 1
- 2
…
- 27
- 28
- 29
- 30
- 31
…
- 67
- 68

XCHAR HelloStr[] = {0x002B,0x0034,0x0037,0x0037,0x0038,0x0020,
0x0030,0x0038,0x003A,0x0037,0x0033,0x0000}; // using reduced font table
This method frees the user from manually calculating the converted character ID's.
Notice the 0x0020 is the space character. This is the only character that will maintain the character ID since by default the
utility always start from the space character. Control characters are omitted from the generated table.
6.3 Palette
Palette Resource consist of Microsoft Bitmap or GIMP palette files. If the palette is derived from a Microsoft Bitmap, the
bitmap must contain a palette. The Palette Format topic give a detailed overview of the structure used by the Microchip
Graphics Library.
6.3.1 Palette Format
The following tables describe the data structures used by the Microchip Graphics Library to decode the palette data.
Palette Header
Name Bits Description
Resource Description 16 See Resource Description Table ( see page 57)
ID 16 User assignable ID
Entry Number 16 Number of palette entries, 2, 4, 16, 256
Table Address Pointer Length
(16/24/32)
Pointer to the location of the palette entry table
Palette Entry
The palette entry is a union and can be used three ways
Name Bits Description
Value 16 16-bit RGB color value
Color Bits Description
Red 5 Red color component of the RGB color
Green 6 Green color component of the RGB color
Blue 5 Blue color component of the RGB color
NOTE: In 16 RGB color, six bits are used for the green component due to the human eye being more sensitive to that color
component.
6.3 Palette Graphics Resource Converter Palette Format
26
6

- 1
- 2
…
- 27
- 28
- 29
- 30
- 31
…
- 67
- 68