Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
uint16_t left,
uint16_t top,
uint16_t right,
uint16_t bottom)
1.6.1.1.4.2 GFX_CircleFillDraw Function
This function renders a filled circle shape using the currently set fill style and colors.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_CircleFillDraw(uint16_t x, uint16_t y, uint16_t radius);
Returns
Status of the circle rendering. GFX_STATUS_SUCCESS - circle fill rendering done. GFX_STATUS_FAILURE - circle fill
rendering is not done.
Description
This function renders a filled circle shape with the currently set fill style (see GFX_FILL_STYLE) with the given left, top, right
and bottom parameters to define the shape dimension. The shape is rendered depending on the fill style. If a flat color is
used, color must be set (see GFX_ColorSet()) before calling this function. If gradient color is used, gradient start and end
color must be set (see GFX_GradientColorSet()) before calling this function. After the fill style and colors are set, multiple
calls to this function can be performed.
The rendering of this shape becomes undefined when any one of the following is true:
• Any of the following pixel locations left,top or right,bottom falls outside the frame buffer.
• Fill style is not set (GFX_FillStyleSet(), before this function is called.
• Colors are not set before this function is called.
• When the center defined by x,y is not on the frame buffer.
Preconditions
Fill style must be set by GFX_FillStyleSet(). Color must be set by GFX_ColorSet().
Example
// assume BLUE and RED are macros that define GFX_COLOR types
GFX_STATUS status;
GFX_FillStyleSet(GFX_FILL_STYLE_GRADIENT_UP);
GFX_GradientColorSet(BLUE, RED);
status = GFX_CircleFillDraw(50, 110, 150, 200, 20);
if (status == GFX_STATUS_SUCCESS)
// Filled circle was drawn.
else
// Filled circle is not drawn or not yet
// finished rendering. To finish the rendering call the
// function again with the same parameters.
Parameters
Parameters Description
x defines the x-coordinate position of the center of the circle.
y defines the y-coordinate position of the center of the circle.
radius defines the radius of the circle.
Function
GFX_STATUS GFX_CircleFillDraw(
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
89
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf