GroupDocsGists
10/19/2017 - 11:12 AM

WatermarkOperations-SearchImageWatermark.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (Document doc = Document.Load(Utilities.MapSourceFilePath (PptFilePath)))
{
    // Initialize criteria with the image
    ImageSearchCriteria imageSearchCriteria = new ImageDctHashSearchCriteria(@"D:\watermark.jpg");

    //Set maximum allowed difference between images
    imageSearchCriteria.MaxDifference = 0.9;

    PossibleWatermarkCollection possibleWatermarks = doc.FindWatermarks(imageSearchCriteria);
}