Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
GFX_STATUS GFX_TransparentColorEnable(GFX_COLOR color);
Returns
The status of the transparent color set action.
Description
This function sets the transparent color used in GFX_ImageDraw() functions and enables the transparent color feature.
When GFX_ImageDraw() or GFX_ImagePartialDraw() is called, any pixels in the image that matches the color value will not
be rendered to the frame buffer.
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(0,0, (void *)&RibbonIcon);
Parameters
Parameters Description
color the color value selected as the transparent color.
Function
GFX_STATUS GFX_TransparentColorEnable(GFX_COLOR color)
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
121
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf