ImageICloneableClone Method

CVB.Net Documentation
Creates a new Image object that is a copy of the current instance.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

Object ICloneable.Clone()

Return Value

Type: Object
A new Image object that is a deep copy of this image data.

Implements

ICloneableClone
Exceptions

ExceptionCondition
InsufficientMemoryExceptionThe new image buffer could not be created.
CvbExceptionIf image format could not be cloned.
ObjectDisposedExceptionIf this image has already been disposed
Remarks

This method performs a deep copy of the image data the current instance currently points to.

This means that if you clone a driver image, you receive a new plain Image without any driver interfaces!

Derived clones may work differently: e.g. a MappedImage won't create deep copy, just a new mapping.

See Also

Reference