# 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
…
- 63
- 64
- 65
- 66
- 67
- 68

7.7.1 Command Line Interface
The Graphics Resource Converter, GRC, can be run through a command line interface. Passing arguments will determine if
the GUI is launched or the command line interface is used.
To run the GRC GUI from the command line:
>java –jar “<Microchip Applications Library directory>/Microchip/Graphics/bin/grc/grc.jar”
To run the GRC without launching the GUI:
>java –jar “<Microchip Applications Library directory>/Microchip/Graphics/bin/grc/grc.jar”
<options>
where
<options>
are the GRC command line options.
Here is an example of some command line options:
java -jar "<my grc path>/grc.jar" -T I -F C -I "images/DateAndTime_4bpp_72x72.bmp" -O
"compression/commandline_test_carray.c" -X DandT_Uncompressed_4bpp ; -T I -F C -I
"images/DateAndTime_4bpp_72x72.bmp" -O "compression/commandline_test_carray.c" -X
DandT_Compressed_RLE_4bpp -P RLE ; -T I -F C -I "images/DateAndTime_8bpp_72x72.bmp" -O
"compression/commandline_test_carray.c" -X DandT_Uncompressed_8bpp ; -T I -F C -I
"images/DateAndTime_8bpp_72x72.bmp" -O "compression/commandline_test_carray.c" -X
DandT_Compressed_RLE_8bpp -P RLE ; -T I -F C -I "images/sunset1.bmp" -O
"compression/commandline_test_carray.c" -X sunset_Uncompressed ; -T I -F C -I
"images/sunset1.bmp" -O "compression/commandline_test_carray.c" -X sunset_Compressed_IPU -P
IPU
7.7.2 Command Line Options
All command line options and associated values must be separated by a space. If the value of the argument contains a
space, it must be surrounded by quotes.
For example
:
Resource Type: Image
-T I -- This command line switch is –T and the value is I.
Output File
-O “output file.c” – This command line switch is –O and the value is “output file.c.” Since
the value has a space, it must be surrounded by quotes
Resource Type (-T)
I – An image, either bitmap or JPEG.
F – A font, either an installed or font file.
Resource Sub-type (-U)
I – installed font
T – TTF font file
7.7 Using the Command Line Interface Graphics Resource Converter Command Line Options
62
7

- 1
- 2
…
- 63
- 64
- 65
- 66
- 67
- 68