diff --git a/src/ImageSharp.Formats.Bmp/BmpEncoder.cs b/src/ImageSharp.Formats.Bmp/BmpEncoder.cs
index 2c0bb5b5d..d0a3550f6 100644
--- a/src/ImageSharp.Formats.Bmp/BmpEncoder.cs
+++ b/src/ImageSharp.Formats.Bmp/BmpEncoder.cs
@@ -31,7 +31,7 @@ namespace ImageSharp.Formats
/// The to encode the image data to.
/// The options for the encoder.
public void Encode(Image image, Stream stream, IBmpEncoderOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
BmpEncoderCore encoder = new BmpEncoderCore(options);
encoder.Encode(image, stream);
diff --git a/src/ImageSharp.Formats.Gif/GifDecoder.cs b/src/ImageSharp.Formats.Gif/GifDecoder.cs
index 88a3d5e43..b1e8ba928 100644
--- a/src/ImageSharp.Formats.Gif/GifDecoder.cs
+++ b/src/ImageSharp.Formats.Gif/GifDecoder.cs
@@ -30,7 +30,7 @@ namespace ImageSharp.Formats
/// The containing image data.
/// The options for the decoder.
public void Decode(Image image, Stream stream, IGifDecoderOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
new GifDecoderCore(options).Decode(image, stream);
}
diff --git a/src/ImageSharp.Formats.Gif/GifEncoder.cs b/src/ImageSharp.Formats.Gif/GifEncoder.cs
index 34027ee0c..cc8516ed9 100644
--- a/src/ImageSharp.Formats.Gif/GifEncoder.cs
+++ b/src/ImageSharp.Formats.Gif/GifEncoder.cs
@@ -15,7 +15,7 @@ namespace ImageSharp.Formats
{
///
public void Encode(Image image, Stream stream, IEncoderOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
IGifEncoderOptions gifOptions = GifEncoderOptions.Create(options);
diff --git a/src/ImageSharp.Formats.Gif/GifEncoderCore.cs b/src/ImageSharp.Formats.Gif/GifEncoderCore.cs
index 2c9a0c8b0..38cbba850 100644
--- a/src/ImageSharp.Formats.Gif/GifEncoderCore.cs
+++ b/src/ImageSharp.Formats.Gif/GifEncoderCore.cs
@@ -237,7 +237,7 @@ namespace ImageSharp.Formats
/// The to be encoded.
/// The stream to write to.
private void WriteComments(Image image, EndianBinaryWriter writer)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
if (this.options.IgnoreMetadata == true)
{
diff --git a/src/ImageSharp.Formats.Png/PngDecoder.cs b/src/ImageSharp.Formats.Png/PngDecoder.cs
index 658de9e66..d527e1654 100644
--- a/src/ImageSharp.Formats.Png/PngDecoder.cs
+++ b/src/ImageSharp.Formats.Png/PngDecoder.cs
@@ -47,7 +47,7 @@ namespace ImageSharp.Formats
/// The containing image data.
/// The options for the decoder.
public void Decode(Image image, Stream stream, IPngDecoderOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
new PngDecoderCore(options).Decode(image, stream);
}