MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Graphics Utilities Library > Graphics Utilities Interface > a) Functions > GFX_DrawEllipse Function
MPLAB® Harmony Graphics Suite
GFX_DrawEllipse Function
C
LIB_EXPORT GFX_Result GFX_DrawEllipse(
    int32_t x, 
    int32_t y, 
    int32_t a, 
    int32_t b, 
    int32_t theta, 
    int32_t startAngle, 
    int32_t centerAngle, 
    int32_t width, 
    int32_t height
);
Parameters
Parameters 
Description 
the x component of the origin position 
the y component of the origin position 
the length of the short side of the ellipse 
the length of the long side of the ellipse 
theta 
the tilt angle, in degrees, of the ellipse 
startAngle 
the starting angle, in degrees, of the arc 
centerAngle 
the center angle, in degrees, of the arc. A positive value draws CW while a negative value draws CCW. 
width 
width, in pixels, of the rectangular draw area for the ellipse 
height 
height, in pixels, of the rectangular draw area for the ellipse 
Returns

GFX_Result - Returns GFX_TRUE if the circle was drawn successfully. Otherwise returns GFX_FALSE.

MPLAB® Harmony Graphics Suite