Last active
January 12, 2021 18:23
-
-
Save GroupDocsGists/d1153909e5e54a8c00ccd5ee422a450c to your computer and use it in GitHub Desktop.
Compare Images to Highlight Differences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may visit the blog post for How to Compare Images in C#.