Dispose the object.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public void Dispose()

Implements

IDisposable..::.Dispose()()()

Remarks

Frees unmanaged resources used by the object. The object becomes unusable after that.

Note:The method needs to be called only in the case if unmanaged image was allocated using Create(Int32, Int32, PixelFormat) method. In the case if the class instance was created using constructor, this method does not free unmanaged memory.

See Also