Create

Create(string)

Creates an image from a file to search.

public static SearchImage Create(string filePath)
Parameter Type Description
filePath String The image file path.

Return Value

An image to search: the first image of a file of several images.

Exceptions

exception condition
ArgumentNullException The file path is null.
ArgumentException The file has no image.

See Also


Create(string, int)

Creates an image from a file to search.

public static SearchImage Create(string filePath, int imageIndex)
Parameter Type Description
filePath String The image file path.
imageIndex Int32 The image index in multipage images, from 0.

Return Value

An image to search.

Exceptions

exception condition
ArgumentNullException The file path is null.
ArgumentOutOfRangeException The image index is negative, or the file does not have an image of the index.

See Also


Create(Stream)

Creates an image from a stream to search.

public static SearchImage Create(Stream stream)
Parameter Type Description
stream Stream The image stream.

Return Value

An image to search: the first image of a stream of several images.

Exceptions

exception condition
ArgumentNullException The stream is null.
ArgumentException The stream has no image.

See Also


Create(Stream, int)

Creates an image from a stream to search.

public static SearchImage Create(Stream stream, int imageIndex)
Parameter Type Description
stream Stream The image stream.
imageIndex Int32 The image index in multipage images, from 0.

Return Value

An image to search.

Exceptions

exception condition
ArgumentNullException The stream is null.
ArgumentOutOfRangeException The image index is negative, or the stream does not have an image of the index.

See Also