MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Graphics Utilities Library > Graphics Utilities Interface > a) Functions > GFX_ScaleInteger Function
MPLAB® Harmony Graphics Suite
GFX_ScaleInteger Function
C
LIB_EXPORT uint32_t GFX_ScaleInteger(
    uint32_t num, 
    uint32_t oldMax, 
    uint32_t newMax
);
Parameters
Parameters 
Description 
num 
the number to consider 
oldMax 
the old range maximum 
newMax 
the new range maximum 
Returns

uint32_t - the number as defined in the new number range

MPLAB® Harmony Graphics Suite