Table of Contents

Class Image

Namespace
FaceRecognitionDotNet
Assembly
VisioForge.Core.FaceAI.dll

Represents a image data. This class cannot be inherited.

public sealed class Image : DisposableObject, IDisposable

Inheritance

Implements

Inherited Members

Properties

Height

Gets the height of the image.

public int Height { get; }

Property Value

int

Exceptions

ObjectDisposedException

This object is disposed.

Width

Gets the width of the image.

public int Width { get; }

Property Value

int

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

filename string

A string that contains the name of the file to which to save this FaceRecognitionDotNet.Image.

format ImageFormat

The FaceRecognitionDotNet.ImageFormat for this FaceRecognitionDotNet.Image.

Exceptions

ArgumentNullException

filename is null.

ObjectDisposedException

This object is disposed.

ToBitmap()

Converts this FaceRecognitionDotNet.Image to a GDI+ Bitmap.

public Bitmap ToBitmap()

Returns

Bitmap

A Bitmap that represents the converted FaceRecognitionDotNet.Image.

Exceptions

ObjectDisposedException

This object is disposed.

NotSupportedException

A Greyscale image is not supported.