Vixen
02b45cc4
csharp
public readonly record struct ImageComparison

What comparing two pictures found.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (7)

  • public bool Matches

    Whether they are within tolerance.

  • public int DifferingPixels

    How many pixels exceeded the channel tolerance.

  • public int TotalPixels

    How many there are.

  • public int WorstChannel

    The largest single-channel difference anywhere.

  • public int WorstX

    Where that was.

  • public int WorstY

    Ditto.

  • public double Fraction

    What fraction of pixels differed.

Methods (2)

  • public ImageComparison(bool Matches, int DifferingPixels, int TotalPixels, int WorstChannel, int WorstX, int WorstY)

    What comparing two pictures found.

  • public override string ToString()

    How this reads in a failure message.

Used by (3)

  • ImageComparerVixen.Ui.Testing
  • RasterizerTestsVixen.Ui.Testing.Tests
  • VisualBaselineVixen.Ui.Testing