📷 A modern, cross-platform, 2D Graphics library for .NET
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.
 
 

33 lines
756 B

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.General.PixelConversion;
public interface ITestPixel<T>
where T : struct, ITestPixel<T>
{
void FromRgba32(Rgba32 source);
static abstract T StaticFromRgba32(Rgba32 source);
void FromRgba32(ref Rgba32 source);
void FromBytes(byte r, byte g, byte b, byte a);
void FromVector4(Vector4 source);
static abstract T StaticFromVector4(Vector4 source);
void FromVector4(ref Vector4 source);
Rgba32 ToRgba32();
void CopyToRgba32(ref Rgba32 destination);
Vector4 ToVector4();
void CopyToVector4(ref Vector4 destination);
}