public abstract class ImageSearchCriteria extends PageSearchCriteria
Provides base class for image search criteria.
| Modifier | Constructor and Description |
|---|---|
protected |
ImageSearchCriteria(InputStream stream)
Initializes a new instance of the
class with a specified stream. |
protected |
ImageSearchCriteria(String filePath)
Initializes a new instance of the
class with a specified file path. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ICriteriaVisitor visitor) |
com.aspose.ms.System.Collections.Generic.List<WatermarkableImage> |
getFalseImages() |
double |
getMaxDifference()
Gets maximum allowed difference between images.
|
StreamContainer |
getStream() |
com.aspose.ms.System.Collections.Generic.List<WatermarkableImage> |
getTrueImages() |
boolean |
isSatisfiedBy(PossibleWatermark candidate) |
void |
resetCache() |
void |
setMaxDifference(double value)
Sets maximum allowed difference between images.
|
getPages, setPagesand, not, orprotected ImageSearchCriteria(InputStream stream)
ImageSearchCriteria class with a specified stream.stream - The stream to load image from.protected ImageSearchCriteria(String filePath)
ImageSearchCriteria class with a specified file path.filePath - The file path to load image from.public void accept(ICriteriaVisitor visitor)
accept in class SearchCriteriapublic final com.aspose.ms.System.Collections.Generic.List<WatermarkableImage> getFalseImages()
public final double getMaxDifference()
Gets maximum allowed difference between images.
public final StreamContainer getStream()
public final com.aspose.ms.System.Collections.Generic.List<WatermarkableImage> getTrueImages()
public boolean isSatisfiedBy(PossibleWatermark candidate)
isSatisfiedBy in class PageSearchCriteriapublic final void resetCache()
public final void setMaxDifference(double value)
Sets maximum allowed difference between images.
value - The value should be between 0 and 1.
0 means that only identical images will be found.Copyright © 2026. All rights reserved.