Hi!
How can i find subimage with C# api?.
If i use image.Compare, "size differs" exception occurred.
MI version 6.8
The source code is following:
How can i find subimage with C# api?.
If i use image.Compare, "size differs" exception occurred.
MI version 6.8
The source code is following:
var currentWebpageScreenshot = webPage.TakeScreenshotAsFile();
using (var imageA = new MagickImage(currentWebpageScreenshot))
using (var imageB = new MagickImage(screenshotFile))
using (var differenceImage = new MagickImage())
{
var comparisonResult = imageA.Compare(imageB, Metric.RootMeanSquareError, differenceImage); // Exception here
// some logic
}
Thanks in advance.