.. index:: 
  !Portrait.imageCenter Property

.. _id3_face_portrait_image_center_class_member:

===============================================================================
Portrait.imageCenter Property
===============================================================================

Module: :ref:`Portrait<id3_face_portrait_class>`

Type: :ref:`Point<id3_face_point_struct>`

Definition
----------

Center of the portrait in the source image.


.. tab-set::

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

    .. code:: Python

      image_center: Point


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      Point get imageCenter => getImageCenter();


    **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 Point imageCenter
      {
          get => GetimageCenter();
      }


    **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 Point getImageCenter() 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 imageCenter: Point
          get {
              return try! getImageCenter()
          }
      }


    **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 id3FacePortrait_GetImageCenter (ID3_FACE_PORTRAIT hPortrait, id3FacePoint * sImageCenter)

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

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

