Create
Leave feedback
On this page
Creates an image from a file to search.
public static SearchImage Create(string filePath)
| Parameter | Type | Description |
|---|---|---|
| filePath | String | The image file path. |
An image to search: the first image of a file of several images.
| exception | condition |
|---|---|
| ArgumentNullException | The file path is null. |
| ArgumentException | The file has no image. |
- class SearchImage
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search
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. |
An image to search.
| 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. |
- class SearchImage
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search
Creates an image from a stream to search.
public static SearchImage Create(Stream stream)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | The image stream. |
An image to search: the first image of a stream of several images.
| exception | condition |
|---|---|
| ArgumentNullException | The stream is null. |
| ArgumentException | The stream has no image. |
- class SearchImage
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search
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. |
An image to search.
| exception | condition |
|---|---|
| ArgumentNullException | The stream is null. |
| ArgumentOutOfRangeException | The image index is negative, or the stream does not have an image of the index. |
- class SearchImage
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.