Class Image
Represents a image data. This class cannot be inherited.
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public sealed class Image : DisposableObject, IDisposable
Properties
| Improve this Doc View SourceHeight
Gets the height of the image.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | This object is disposed. |
Width
Gets the width of the image.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | This object is disposed. |
Methods
| Improve this Doc View SourceDisposeUnmanaged()
Releases all unmanaged resources.
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceSave(String, ImageFormat)
Saves this Image to the specified file.
Declaration
public void Save(string filename, ImageFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | A string that contains the name of the file to which to save this Image. |
ImageFormat | format | The ImageFormat for this Image. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ObjectDisposedException | This object is disposed. |
ToBitmap()
Converts this Image to a GDI+ System.Drawing.Bitmap.
Declaration
public Bitmap ToBitmap()
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | A System.Drawing.Bitmap that represents the converted Image. |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | This object is disposed. |
System.NotSupportedException | A Greyscale image is not supported. |
Implements
System.IDisposable