Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
gradientEndColor panelGradientEndColor - use is dependent on the panelFillStyle
setting.
-- panelImage - set by the object that supports images.
The text parameters are not handled in the panel. These are handled by each object that supports texts.
See the section on panel rendering for the summary of APIs that support panel rendering.
Background Feature
The Primitive Layer provides a global background information variable. This allows users to set a background and easily
refresh parts of the screen that that background occupies (see GFX_BACKGROUND for details). The style scheme of the
objects also allows association of the object to a background. This feature allows the objects to be easily refreshed on the
screen.
The requirement of the background feature is that the background should encompass the object. In other words, all the
pixels of the object should be within the background dimension. Once this requirement is fulfilled, the parameters of the
object that defines the location of the object (left, top, right bottom) is used to refresh the background pixels. Because of this
Alpha blending, hiding or basic refresh of the object is optimized.
To add background information on the object the following style scheme parameters should be set:
1. CommonBkLeft - The left most pixel location of the background.
2. CommonBkTop - The top most pixel location of the background.
3. CommonBkType - Should be set to one of the GFX_BACKGROUND_TYPE.
4. pCommonBkImage - If the CommonBkType is set to GFX_BACKGROUND_IMAGE, this should be set to the location of
the image resource.
Alpha Blending
When alpha blending is enabled, the object can be alpha blended with the background. Objects can also be removed from
the screen easily by re-drawing only the areas that the object occupies.
Alpha Blending Objects
To implement an alpha blended object the following style scheme parameters should be set:
1. fillStyle - Set to GFX_FILL_STYLE_ALPHA_COLOR.
2. AlphaValue - Set the alpha blending value. Set to 25, 50 or 75 when using primitive layer implementation of alpha
blending.
Gradient Fills
Objects can also be rendered with gradient fill on the panels. However, enabling gradient fill that are alpha
blended is not supported yet. When AlphaValue is not 0 or 100 and fillStyle set to any of the gradient fill types, the alpha
value will be ignored and assumed to be 100.
To implement an gradient filled object the following style scheme parameters should be set:
1. fillStyle - Set to any of the gradient fill style (see GFX_FILL_STYLE for details):
• GFX_FILL_STYLE_GRADIENT_DOWN
1.4 Using The Library MLA - Graphics Library Help How the Library Works
58
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf