Browse Source

Add non-generic IPackedPixel interface

af/merge-core
James Jackson-South 9 years ago
parent
commit
c4ba34b057
  1. 11
      src/ImageSharp/Colors/PackedPixel/IPackedPixel.cs

11
src/ImageSharp/Colors/PackedPixel/IPackedPixel.cs

@ -8,11 +8,18 @@ namespace ImageSharp
using System;
/// <summary>
/// An interface that represents a packed pixel type.
/// An interface that represents a generic packed pixel type.
/// </summary>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IPackedPixel<TPacked> : IPackedVector<TPacked>, IPackedBytes
public interface IPackedPixel<TPacked> : IPackedPixel, IPackedVector<TPacked>
where TPacked : struct, IEquatable<TPacked>
{
}
/// <summary>
/// An interface that represents a packed pixel type.
/// </summary>
public interface IPackedPixel : IPackedVector, IPackedBytes
{
}
}

Loading…
Cancel
Save