# clone method

ImageBuffer clone()

Creates a copy of the ImageBuffer object.

return The newly created ImageBuffer object. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    ImageBuffer clone() {
      ImageBuffer clone = ImageBuffer();
      var err = documentSDK.id3DocumentImageBuffer_CopyTo(_pHandle.value, clone.handle);
      if (err != DocumentError.success.value) {
        throw DocumentException(err);
      }
      return clone;
    }