Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compare Images to Highlight Differences
// Compare JPG, PNG, GIF, BMP image formats using .NET Image Comparison API in C#
using (Comparer comparer = new Comparer("filepath/soureImage.jpg"))
{
CompareOptions options = new CompareOptions();
options.GenerateSummaryPage = false; // To get the difference summary, set it 'true'
comparer.Add("filepath/targetImage.jpg");
comparer.Compare("filepath/comparisonResultImage.jpg", options);
}
@GroupDocsGists

This comment has been minimized.

Copy link
Owner Author

@GroupDocsGists GroupDocsGists commented Jan 12, 2021

You may visit the blog post for How to Compare Images in C#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.