Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# Portrait.clone Method

Module: Portrait

## Definition

Clones the Portrait object.

Python

    clone(self) -> Portrait

Returns

> Portrait
> The newly created portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    Portrait clone()

Returns

> Portrait
> The newly created portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public Portrait Clone()

Returns

> Portrait
> The newly created portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public Portrait clone() throws FaceException

Returns

> Portrait
> The newly created portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func clone() throws -> Portrait

Returns

> Portrait
> The newly created portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FacePortrait_CopyTo (
        ID3_FACE_PORTRAIT hPortrait,
        ID3_FACE_PORTRAIT hPortraitDst)

Parameters

> `hPortrait` ID3_FACE_PORTRAIT
> in Handle to the Portrait object.
> `hPortraitDst` ID3_FACE_PORTRAIT
> out The newly created portrait.

Returns

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