mirror of https://github.com/SixLabors/ImageSharp
21 changed files with 44 additions and 36 deletions
@ -0,0 +1,24 @@ |
|||||
|
// <copyright file="IPackedVector{TPacked}.cs" company="James Jackson-South">
|
||||
|
// Copyright (c) James Jackson-South and contributors.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
// </copyright>
|
||||
|
|
||||
|
namespace ImageSharp |
||||
|
{ |
||||
|
using System; |
||||
|
using System.Numerics; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// This interface exists for ensuring signature compatibility to MonoGame and XNA packed color types.
|
||||
|
/// <see href="https://msdn.microsoft.com/en-us/library/bb197661.aspx" />
|
||||
|
/// </summary>
|
||||
|
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
|
||||
|
public interface IPackedVector<TPacked> : IPixel |
||||
|
where TPacked : struct, IEquatable<TPacked> |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Gets or sets the packed representation of the value.
|
||||
|
/// </summary>
|
||||
|
TPacked PackedValue { get; set; } |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue