mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
745 B
21 lines
745 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.TestUtilities
|
|
{
|
|
public class GraphicsOptionsComparer : IEqualityComparer<GraphicsOptions>
|
|
{
|
|
public bool Equals(GraphicsOptions x, GraphicsOptions y)
|
|
{
|
|
return x.AlphaCompositionMode == y.AlphaCompositionMode
|
|
&& x.Antialias == y.Antialias
|
|
&& x.AntialiasSubpixelDepth == y.AntialiasSubpixelDepth
|
|
&& x.BlendPercentage == y.BlendPercentage
|
|
&& x.ColorBlendingMode == y.ColorBlendingMode;
|
|
}
|
|
|
|
public int GetHashCode(GraphicsOptions obj) => obj.GetHashCode();
|
|
}
|
|
}
|
|
|