SnapshotComparerCollectionImageComparerExtensions Class

Provides extension methods for SnapshotComparerCollection to compare image snapshots by their pixels.

public static class SnapshotComparerCollectionImageComparerExtensions

Methods

NameDescription
SnapshotComparerCollection.AddImageComparer(ImageComparisonSettings?)Registers the ImageComparer for the snapshots of every format Meziantou.Framework.Imaging decodes: PNG and APNG, JPEG, GIF, WebP, BMP, TIFF, ICO, CUR, ANI, QOI, TGA, PNM (PBM, PGM, PPM and PAM), AVIF, HEIC, JPEG XL and JPEG 2000, under each of their file extensions. The PNG comparer also compares the frames that AddGifSerializer and AddIcoSerializer write.

SnapshotComparerCollection.AddImageComparer(ImageComparisonSettings?)

SnapshotComparerCollectionImageComparerExtensions.cs

Registers the ImageComparer for the snapshots of every format Meziantou.Framework.Imaging decodes: PNG and APNG, JPEG, GIF, WebP, BMP, TIFF, ICO, CUR, ANI, QOI, TGA, PNM (PBM, PGM, PPM and PAM), AVIF, HEIC, JPEG XL and JPEG 2000, under each of their file extensions. The PNG comparer also compares the frames that AddGifSerializer and AddIcoSerializer write.

extension(SnapshotComparerCollection comparers)
{
    public void AddImageComparer(ImageComparisonSettings? settings = null)
}

Parameters

comparers SnapshotComparerCollection
settings ImageComparisonSettings?
Optional image comparison settings. When null, exact pixel comparison is used.