Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
int16_t dX,
int16_t dY)
1.6.1.1.3 Polygon Rendering Functions
The following API are used to render polygon shapes.
Functions
Name Description
GFX_CircleDraw This function renders a circular shape using the currently set line style
and color.
GFX_PolygonDraw This function renders a polygon using the currently set line style and
color.
GFX_RectangleDraw This function renders a rectangular shape using the currently set line
style and color.
GFX_RectangleRoundDraw This function renders a rounded corner rectangular shape using the
currently set line style and color.
1.6.1.1.3.1 GFX_CircleDraw Function
This function renders a circular shape using the currently set line style and color.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_CircleDraw(uint16_t x, uint16_t y, uint16_t radius);
Returns
Status of the circle rendering. GFX_STATUS_SUCCESS - circle rendering done. GFX_STATUS_FAILURE - circle rendering
is not done.
Description
This function renders a circular shape using the center (x,y) and radius. The shape is rendered using the currently set line
style by GFX_LineStyleSet(). The color used is the color set by the last call to GFX_ColorSet().
When x,y falls outside the buffer, the behavior is undefined. When color is not set before this function is called, the bahavior
is undefined. When any of the following x+radius, x-radius, y+radius and y-radius falls outside the buffer, the behavior is
undefined.
Preconditions
Color must be set by GFX_ColorSet(). Line style must be set by GFX_LineStyleSet().
Example
// draw a circle using bright red solid line
GFX_LineStyleSet(GFX_LINE_STYLE_THIN_SOLID);
GFX_ColorSet(BRIGHTRED);
GFX_CircleDraw(50, 50, 40);
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_CircleDraw(
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
83
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf