# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 112
- 113
- 114
- 115
- 116
…
- 373
- 374

1.6.1.1.8 Color Functions
The following API are used to set and get colors.
Functions
Name Description
GFX_ColorGet This function returns the color currently set to render primitive shapes
and text.
GFX_ColorSet This function sets the color to be used in rendering primitive shapes and
text.
GFX_TransparentColorDisable This function disables the transparent color feature used in
GFX_ImageDraw() and GFX_ImagePartialDraw() functions.
GFX_TransparentColorEnable This function sets the transparent color used in GFX_ImageDraw()
functions and enables the transparent color feature.
GFX_TransparentColorGet This returns the current transparent color set for the transparent color
feature used in GFX_ImageDraw() and GFX_ImagePartialDraw()
functions.
GFX_TransparentColorStatusGet This returns the current state of the transparent color feature used in
GFX_ImageDraw() and GFX_ImagePartialDraw() functions.
Macros
Name Description
GFX_Color25Convert Function to convert the 25% equivalent of the given color.
GFX_Color50Convert Function to convert the 50% equivalent of the given color.
GFX_Color75Convert Function to convert the 75% equivalent of the given color.
GFX_ComponentBlueGet Function to extract the blue component of the given color.
GFX_ComponentGreenGet Function to extract the green component of the given color.
GFX_ComponentRedGet Function to extract the red component of the given color.
GFX_RGBConvert Function to convert 24 bpp color data to X bpp color data.
1.6.1.1.8.1 GFX_Color25Convert Macro
Function to convert the 25% equivalent of the given color.
File
gfx_types_macros.h
Syntax
#define GFX_Color25Convert(color) (GFX_COLOR)((color & (0b1110011110011100))>>2)
Returns
The converted color.
Description
Function to convert the 25% equivalent of the given color.
Remarks
None.
Preconditions
None.
Example
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
114

- 1
- 2
…
- 112
- 113
- 114
- 115
- 116
…
- 373
- 374