public static float floorPot(float value) {
        float returnValue = 0.0f;
        for (float newValue = 2.0f; newValue < value; newValue *= 2.0f) {
            returnValue = newValue;
        }
        
        return returnValue;
    }
Does not dispose pixmap.
@param pixmap
@param ninePatch
@return
core/src/com/ray3k/skincomposer/utils/Utils.java