.. index:: 
  !ImageBuffer.clone Method
  
.. _id3_face_image_buffer_clone_class_method:

===============================================================================
ImageBuffer.clone Method
===============================================================================

Module: :ref:`ImageBuffer<id3_face_image_buffer_class>`

Definition
----------

Clones the ImageBuffer object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> ImageBuffer

      **Returns**

        .. line-block::

          :ref:`ImageBuffer<id3_face_image_buffer_class>`
          The newly created image buffer.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        ImageBuffer clone()

      **Returns**

        .. line-block::

          :ref:`ImageBuffer<id3_face_image_buffer_class>`
          The newly created image buffer.

      **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 ImageBuffer Clone()

      **Returns**

        .. line-block::

          :ref:`ImageBuffer<id3_face_image_buffer_class>`
          The newly created image buffer.

      **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 ImageBuffer clone() throws FaceException

      **Returns**

        .. line-block::

          :ref:`ImageBuffer<id3_face_image_buffer_class>`
          The newly created image buffer.

      **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 clone() throws -> ImageBuffer

      **Returns**

        .. line-block::

          :ref:`ImageBuffer<id3_face_image_buffer_class>`
          The newly created image buffer.

      **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 id3FaceImageBuffer_CopyTo (
            ID3_FACE_IMAGE_BUFFER hImageBuffer, 
            ID3_FACE_IMAGE_BUFFER hImageBufferDst)

      **Parameters**

        .. line-block::

          ``hImageBuffer`` :ref:`ID3_FACE_IMAGE_BUFFER<id3_face_image_buffer_class>`
          :guilabel:`in` Handle to the ImageBuffer object.

          ``hImageBufferDst`` :ref:`ID3_FACE_IMAGE_BUFFER<id3_face_image_buffer_class>`
          :guilabel:`out` The newly created image buffer.


      **Returns**

        .. line-block::

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


