Searches for the specified feature in the image
and returns whether the feature is found.
| C# | Visual Basic | Visual C++ |
public static bool Contains( Bitmap image, Bitmap feature, Imaging..::.FindOptions options )
Public Shared Function Contains ( _ image As Bitmap, _ feature As Bitmap, _ options As Imaging..::.FindOptions _ ) As Boolean
public: static bool Contains( Bitmap^ image, Bitmap^ feature, Imaging..::.FindOptions^ options )
- image (Bitmap)
- The image to search in.
- feature (Bitmap)
- The image to search for.
- options (Imaging..::.FindOptions)
- A Imaging..::.FindOptions instance that defines the options for the search.
True if the feature is found, otherwise false.
| Exception | Condition |
|---|---|
| ArgumentNullException | If image is null. |
| ArgumentNullException | If feature is null. |
| ArgumentException | If the feature is greater in size
than the image. |
| ArgumentException | If the bitmap format of the feature
cannot be converted to that of the image. |
