# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 118
- 119
- 120
- 121
- 122
…
- 373
- 374

Parameters
Parameters Description
red red component of the color.
green green component of the color.
blue blue component of the color.
Function
GFX_COLOR GFX_RGBConvert(
uint8_t red,
uint8_t blue,
uint8_t green)
1.6.1.1.8.10 GFX_TransparentColorDisable Function
This function disables the transparent color feature used in GFX_ImageDraw() and GFX_ImagePartialDraw() functions.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_TransparentColorDisable();
Returns
The status of the transparent color disable action.
Description
This function disables the transparent color feature used in GFX_ImageDraw() and GFX_ImagePartialDraw() functions.
The transparent color feature can only be enabled when the color depth used is 24 or 16 bpp.
Preconditions
Transparent color feature must be enabled at build time. This is enabled by default and can be disabled by defining the
macro GFX_CONFIG_TRANSPARENT_COLOR_DISABLE in the system.
Example
// assume ScreenBackground and RibbonIcon are valid
// image resources
// assume BLACK is a valid GFX_COLOR value
GFX_TransparentColorEnable(BLACK);
GFX_ImageDraw(0,0, (void *)&ScreenBackground);
GFX_ImageDraw(50,50, (void*)&RibbonIcon);
// disable the transparent color feature since the
// next image to render contains black pixels that
// we want to render
GFX_TransparentColorDisable();
GFX_ImageDraw(50,50, (void*)&OverlayImage);
Function
GFX_STATUS GFX_TransparentColorDisable(void)
1.6.1.1.8.11 GFX_TransparentColorEnable Function
This function sets the transparent color used in GFX_ImageDraw() functions and enables the transparent color feature.
File
gfx_primitive.h
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
120

- 1
- 2
…
- 118
- 119
- 120
- 121
- 122
…
- 373
- 374