MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Graphics Utilities Library > Graphics Utilities Interface
MPLAB® Harmony Graphics Suite
Graphics Utilities Interface

This section describes the interface for the Graphics Utilities Library.

a) Functions
 
Name 
Description 
 
Calculates the absolute value of a signed integer. 
 
Performs the inverse tangent operation 
 
Clamps a float between a min and max 
 
Clamps an integer between a min and max 
 
Calculates integer division of num/denom with rounding based on LSB/2. 
 
Draws a filled arc from using the specified dimensions and the current draw state. 
 
Draws a filled ellipse from using the specified dimensions and the current draw state. 
 
Sets the pixel at X and Y using a specified draw state. 
 
Performs a cosine lookup to determine the points in an arc at specified radius and angle (polar > cartesian conversion) 
 
Performs a linear interpolation of an integer based on a percentage between two signed points. 
 
Returns the larger of two floats. 
 
Returns the larger of two integers. 
 
Returns the smaller of two floats. 
 
Returns the smaller of two integers. 
 
normalize an angle between 0 - 360 
 
Calculates the percentage of one number when applied to another. Integer based. Accuracy for higher numbers is not guaranteed.
The result is the decimal percentage multiplied by 100. 
 
Calculates the percentage of a number. Returns a whole number with no decimal component. 
 
Calculates the percentage of a number. Returns a whole number and the tenths digit decimal component. 
 
Calculates the percentage of one number when applied to another. Integer based. Accuracy for higher numbers is not guaranteed.
The difference between this and GFX_Percent is that the decimal portion of the whole number is rounded off. 
 
Performs a cosine lookup to determine the points in an arc at specified radius and angle (polar to Cartesian conversion) 
 
Scales an integer from one number range of 0 -> n0 to another range 0 -> n1 based on percentages. 
 
Scales a signed integer from one number range of 0 -> n0 to another range 0 -> n1 based on percentages. 
 
Performs a cosine lookup to determine the result of sine/cosine 
 
Gets X given Y and two points on a line 
 
Gets Y given X and two points on a line 
b) Data Types and Constants
 
Name 
Description 
 
This is type GFX_TRIG_FUNCTION_TYPE. 
 
This is type GFXU_StringTableAsset. 
MPLAB® Harmony Graphics Suite