Vault 7: Projects

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

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
if (GFX_TransparentColorStatusGet == GFX_FEATURE_DISABLED)
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
if (GFX_TransparentColorGet == BLACK)
GFX_TransparentColorDisable();
GFX_ImageDraw(50,50, (void*)&OverlayImage);
Function
GFX_FEATURE_STATUS GFX_TransparentColorStatusGet(void)
1.6.1.1.9 Background Functions
The following API are used to set and manipulate the background.
Functions
Name Description
GFX_BackgroundColorGet This function returns the color used in the current background.
GFX_BackgroundImageGet This function returns the image used in the current background.
GFX_BackgroundImageLeftGet This function returns the horizontal starting position of the current
background.
GFX_BackgroundImageTopGet This function returns the vertical starting position of the current
background.
GFX_BackgroundSet This function sets the background information.
GFX_BackgroundTypeGet This function returns the type of the current background.
GFX_BackgroundTypeSet This function sets the background type.
1.6.1.1.9.1 GFX_BackgroundColorGet Function
This function returns the color used in the current background.
File
gfx_primitive.h
Syntax
GFX_COLOR GFX_BackgroundColorGet();
Returns
The color used in the current background.
Description
This function returns the color used in the current background.
Preconditions
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
123

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh