Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Magick.Net 7.0.0.0008-Q8-AnyCPU Compare Difference Image

$
0
0
Here is the code (v6 is identical with the exception of Metric.AbsoluteError):
    static void Main(string[] args)
    {
        double dblHits;

        using (MagickImage objMI_A = new MagickImage("D:\\A.jpg"))
        {
            using (MagickImage objMI_B = new MagickImage("D:\\B.jpg"))
            {
                using (MagickImage objMI_C = new MagickImage())
                {
                    objMI_A.ColorFuzz = new Percentage(30);
                    dblHits = objMI_A.Compare(objMI_B, ErrorMetric.Absolute, objMI_C);
                    objMI_C.Write("D:\\C.jpg");
                }
            }
        }
    }

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>