.. index:: 
  !Image.flip Method
  
.. _id3_face_image_flip_class_method:

===============================================================================
Image.flip Method
===============================================================================

Module: :ref:`Image<id3_face_image_class>`

Definition
----------

Flips the image in-place.


.. tab-set::

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

      .. code:: Python

        flip(self, flip_horizontally: bool, flip_vertically: bool) -> None

      **Parameters**

        .. line-block::

          ``flip_horizontally`` bool
          :guilabel:`in` Value indicating whether the image should be flipped horizontally.

          ``flip_vertically`` bool
          :guilabel:`in` Value indicating whether the image should be flipped vertically.


      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        void flip(bool flipHorizontally, bool flipVertically)

      **Parameters**

        .. line-block::

          ``flipHorizontally`` bool
          :guilabel:`in` Value indicating whether the image should be flipped horizontally.

          ``flipVertically`` bool
          :guilabel:`in` Value indicating whether the image should be flipped vertically.


      **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 void Flip(bool flipHorizontally, bool flipVertically)

      **Parameters**

        .. line-block::

          ``flipHorizontally`` bool
          :guilabel:`in` Value indicating whether the image should be flipped horizontally.

          ``flipVertically`` bool
          :guilabel:`in` Value indicating whether the image should be flipped vertically.


      **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 void flip(boolean flipHorizontally, boolean flipVertically) throws FaceException

      **Parameters**

        .. line-block::

          ``flipHorizontally`` boolean
          :guilabel:`in` Value indicating whether the image should be flipped horizontally.

          ``flipVertically`` boolean
          :guilabel:`in` Value indicating whether the image should be flipped vertically.


      **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 func flip(flipHorizontally: Bool, flipVertically: Bool) throws

      **Parameters**

        .. line-block::

          ``flipHorizontally`` Bool
          :guilabel:`in` Value indicating whether the image should be flipped horizontally.

          ``flipVertically`` Bool
          :guilabel:`in` Value indicating whether the image should be flipped vertically.


      **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 id3FaceImage_Flip (
            ID3_FACE_IMAGE hImage, 
            bool flipHorizontally, 
            bool flipVertically)

      **Parameters**

        .. line-block::

          ``hImage`` :ref:`ID3_FACE_IMAGE<id3_face_image_class>`
          :guilabel:`in` Handle to the Image object.

          ``flipHorizontally`` bool
          :guilabel:`in` Value indicating whether the image should be flipped horizontally.

          ``flipVertically`` bool
          :guilabel:`in` Value indicating whether the image should be flipped vertically.


      **Returns**

        .. line-block::

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


