# getMaximumHorizontalPosition method

int getMaximumHorizontalPosition()

Gets the value indicating if the head is correctly centered horizontally. For ICAO compliance, the value must be in the range 45 to 55. Hint: Default value is 55.

return Value indicating if the head is correctly centered horizontally. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getMaximumHorizontalPosition() {
      Pointer<Int> pMaximumHorizontalPosition = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetMaximumHorizontalPosition(_pHandle.value, pMaximumHorizontalPosition);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vMaximumHorizontalPosition = pMaximumHorizontalPosition.value;
        return vMaximumHorizontalPosition;
      } finally {
        calloc.free(pMaximumHorizontalPosition);
      }
    }