.. index:: 
  !DetectedFace.bounds Property

.. _id3_face_detected_face_bounds_class_member:

===============================================================================
DetectedFace.bounds Property
===============================================================================

Module: :ref:`DetectedFace<id3_face_detected_face_class>`

Type: :ref:`Rectangle<id3_face_rectangle_struct>`

Definition
----------

Bounds of the detected face.


.. tab-set::

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

    .. code:: Python

      bounds: Rectangle


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      Rectangle get bounds => getBounds();
      set bounds(Rectangle value) => setBounds(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 Rectangle bounds
      {
          get => Getbounds();
          set => Setbounds(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 Rectangle getBounds() throws FaceException
      public void setBounds(Rectangle bounds) 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 bounds: Rectangle
          get {
              return try! getBounds()
          }
      }


    **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 id3DetectedFace_GetBounds (ID3_DETECTED_FACE hDetectedFace, id3FaceRectangle * sBounds)
      int id3DetectedFace_SetBounds (ID3_DETECTED_FACE hDetectedFace, const id3FaceRectangle * sBounds)

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

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

