Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.6.1.1.8.12 GFX_TransparentColorGet Function
This returns the current transparent color set for the transparent color feature used in GFX_ImageDraw() and
GFX_ImagePartialDraw() functions.
File
gfx_primitive.h
Syntax
GFX_COLOR GFX_TransparentColorGet();
Returns
The current transparent color used.
Description
This returns the current transparent color set for 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
if (GFX_TransparentColorGet == BLACK)
GFX_TransparentColorDisable();
GFX_ImageDraw(50,50, (void*)&OverlayImage);
Function
GFX_COLOR GFX_TransparentColorGet(void)
1.6.1.1.8.13 GFX_TransparentColorStatusGet Function
This returns the current state of the transparent color feature used in GFX_ImageDraw() and GFX_ImagePartialDraw()
functions.
File
gfx_primitive.h
Syntax
GFX_FEATURE_STATUS GFX_TransparentColorStatusGet();
Returns
The current transparent feature status (see GFX_FEATURE_STATUS for details).
Description
This returns the current transparent color set for 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.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
122
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf