.. index:: 
  !PortraitProcessor.maximumVerticalPosition Property

.. _id3_face_portrait_processor_maximum_vertical_position_class_member:

===============================================================================
PortraitProcessor.maximumVerticalPosition Property
===============================================================================

Module: :ref:`PortraitProcessor<id3_face_portrait_processor_class>`

Type: int

Definition
----------

Maximum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.

For ICAO compliance, the value must be in the range 30 to 50.

.. hint:: Default value is 50.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      maximum_vertical_position: int


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

      int get maximumVerticalPosition => getMaximumVerticalPosition();
      set maximumVerticalPosition(int value) => setMaximumVerticalPosition(value);


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

      public int maximumVerticalPosition
      {
          get => GetmaximumVerticalPosition();
          set => SetmaximumVerticalPosition(ref value);
      }


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

      public int getMaximumVerticalPosition() throws FaceException
      public void setMaximumVerticalPosition(int maximumVerticalPosition) throws FaceException


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

      public var maximumVerticalPosition: Int
          get {
              return Int(try! getMaximumVerticalPosition())
          }
      }


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

      int id3FacePortraitProcessor_GetMaximumVerticalPosition (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * maximumVerticalPosition)
      int id3FacePortraitProcessor_SetMaximumVerticalPosition (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int maximumVerticalPosition)

    **Returns**
   
      .. line-block::

        ``int``
        An error code.
        See :ref:`id3FaceError<id3_face_face_error_enum>` file for the list of possible error codes.

