# clone method

Portrait clone()

Creates a copy of the Portrait object.

return The newly created Portrait object. throws FaceException An error has occurred during Face Library execution.

## Implementation

    Portrait clone() {
      Portrait clone = Portrait();
      var err = faceSDK.id3FacePortrait_CopyTo(_pHandle.value, clone.handle);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
      return clone;
    }