WatermarkerGetImages Method (ImageSearchCriteria)
Finds images according to specified search criteria.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public WatermarkableImageCollection GetImages(
	ImageSearchCriteria searchCriteria
)

Parameters

searchCriteria
Type: GroupDocs.Watermark.Search.SearchCriteriaImageSearchCriteria
The search criteria to use.

Return Value

Type: WatermarkableImageCollection
The collection of found images.
Remarks

The search is conducted in objects specified in SearchableObjects.

Learn more about searching watermarks Searching watermarks.

Examples
Remove all images that are similar to the reference from a document of any supported type.
C#
using (Watermarker watermarker = new Watermarker(@"D:\input.doc"))
{
    ImageThumbnailSearchCriteria criteria = new ImageThumbnailSearchCriteria("reference.png");
    WatermarkableImageCollection images = watermarker.GetImages(criteria);
    images.Clear();
    watermarker.Save(@"D:\output.doc");
}
See Also