Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1 Graphics Resource Converter
The Graphics Resource Converter converts images, bitmaps (BMP extension) and JPEG (JPG or JPEG extension), fonts,
operating system's installed fonts or True Type fonts directly from files (TTF extension), and binary files into formats to be
used with Microchip Graphics Library. Bitmap and fonts are converted to use an optimized encoding for PIC microcontroller
usage, while the encoding of JPEG images are maintained. The converter can also be used to create color palettes used by
Microchip's graphics module based upon GIMP palettes or bitmaps.
Fonts maybe a copyrighted material so please ensure that you have the rights to use it. You may find free fonts distributed
under Open Font License (OFL) agreement. Some of the fonts distributed under OFL may be found here
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=OFL_fonts.
Importing fonts into application can be performed in two ways. The first method is to identify a range of characters that you
want to use and create a font table starting from the first character up to the last character in the range. The second method
is to create a character filter file and based on the filter create a reduced character font table. The second method is effective
in implementing multi-language applications using only a fraction of the memory required for a full font table implementation.
This is especially true for Asian fonts such as Chinese, Japanese and Korean fonts.
Importing images that are not BMP or JPEG requires a step to convert images to a BMP or JPEG format. Multiple image
editors that convert other formats to BMP or JPEG format are readily available from software vendors. Microsoft’s Paint
application is one such image editor. For advanced image editing using an application called GIMP (www.gimp.org) is
recommended because it supports capability to do generate optimized color palette for image which can reduce image size.
Importing binary files requires the file to have a .bin extension. Any file to convert in a raw binary format can be renamed to
have the .bin extension and loaded into the converter.
Creating a palette can be done in a number of ways, GIMP palette or bitmaps. You can have the converter generate a
palette based on the bitmaps that are currently loaded into the resource table. The converter will re-format the bitmaps to
use the generated palette table.
1 Graphics Resource Converter
1
1
Protego_Release_01_05-Related-OEM-MLA-framework-gfx-utilities-grc-Graphics_Resource_Converter_Help.pdf