Class Image
- Namespace
- FaceRecognitionDotNet
- Assembly
- VisioForge.Core.FaceAI.dll
Represents a image data. This class cannot be inherited.
public sealed class Image : DisposableObject, IDisposableInheritance
Implements
Inherited Members
Properties
Height
Gets the height of the image.
public int Height { get; }Property Value
Exceptions
- ObjectDisposedException
-
This object is disposed.
Width
Gets the width of the image.
public int Width { get; }Property Value
Exceptions
- ObjectDisposedException
-
This object is disposed.
Methods
DisposeUnmanaged()
Releases all unmanaged resources.
protected override void DisposeUnmanaged()Save(string, ImageFormat)
Saves this FaceRecognitionDotNet.Image to the specified file.
public void Save(string filename, ImageFormat format)Parameters
filenamestring-
A string that contains the name of the file to which to save this FaceRecognitionDotNet.Image.
formatImageFormat-
The FaceRecognitionDotNet.ImageFormat for this FaceRecognitionDotNet.Image.
Exceptions
- ArgumentNullException
-
filenameis null. - ObjectDisposedException
-
This object is disposed.
ToBitmap()
Converts this FaceRecognitionDotNet.Image to a GDI+ Bitmap.
public Bitmap ToBitmap()Returns
Exceptions
- ObjectDisposedException
-
This object is disposed.
- NotSupportedException
-
A Greyscale image is not supported.