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

int32_t - the number as defined in the new number range

MPLAB® Harmony Graphics Suite