MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Hardware Abstraction Layer (HAL) > Library Interface > a) Functions > GFX_DrawLine Function
MPLAB® Harmony Graphics Suite
GFX_DrawLine Function
C
LIB_EXPORT GFX_Result GFX_DrawLine(
    int32_t x1, 
    int32_t y1, 
    int32_t x2, 
    int32_t y2
);
Parameters
Parameters 
Description 
x1 
the x component of the first coordinate of the line 
y1 
the y component of the first coordinate of the line 
x2 
the x component of the second coordinate of the line 
y2 
the y component of the second coordinate of the line 
Returns

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

MPLAB® Harmony Graphics Suite