Show / Hide Table of Contents

Class Image

Represents a image data. This class cannot be inherited.

Inheritance
System.Object
DisposableObject
Image
Implements
System.IDisposable
Inherited Members
DisposableObject.IsDisposed
DisposableObject.ThrowIfDisposed()
DisposableObject.DisposeManaged()
DisposableObject.Dispose()
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 Source

Height

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.

| Improve this Doc View Source

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 Source

DisposeUnmanaged()

Releases all unmanaged resources.

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableObject.DisposeUnmanaged()
| Improve this Doc View Source

Save(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

filename is null.

System.ObjectDisposedException

This object is disposed.

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX