# clone method

ImageBuffer clone()

Creates a copy of the ImageBuffer object.

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

## Implementation

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