.. index:: 
  !FaceTemplate.clone Method
  
.. _id3_face_face_template_clone_class_method:

===============================================================================
FaceTemplate.clone Method
===============================================================================

Module: :ref:`FaceTemplate<id3_face_face_template_class>`

Definition
----------

Clones the FaceTemplate object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> FaceTemplate

      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          The newly created face template.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        FaceTemplate clone()

      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          The newly created face template.

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

      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          The newly created face template.

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

      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          The newly created face template.

      **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 -> FaceTemplate

      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          The newly created face template.

      **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 id3FaceTemplate_CopyTo (
            ID3_FACE_TEMPLATE hFaceTemplate, 
            ID3_FACE_TEMPLATE hFaceTemplateDst)

      **Parameters**

        .. line-block::

          ``hFaceTemplate`` :ref:`ID3_FACE_TEMPLATE<id3_face_face_template_class>`
          :guilabel:`in` Handle to the FaceTemplate object.

          ``hFaceTemplateDst`` :ref:`ID3_FACE_TEMPLATE<id3_face_face_template_class>`
          :guilabel:`out` The newly created face template.


      **Returns**

        .. line-block::

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


