Interface IColorProfile<TSelf>
- Namespace
- SixLabors.ImageSharp.ColorProfiles
- Assembly
- SixLabors.ImageSharp.dll
Defines the contract for all color profiles.
public interface IColorProfile<TSelf> : IColorProfile, IEquatable<TSelf> where TSelf : IColorProfile<TSelf>
Type Parameters
TSelfThe type of color profile.
- Inherited Members
Methods
FromScaledVector4(Vector4)
Initializes the color instance from a generic a generic ("scaled") Vector4 representation
with values scaled and clamped between
public static abstract TSelf FromScaledVector4(Vector4 source)
Parameters
sourceVector4The vector to load the pixel from.
Returns
- TSelf
The
TSelf.
FromScaledVector4(ReadOnlySpan<Vector4>, Span<TSelf>)
Converts the span of colors from a generic ("scaled") Vector4 representation
with values scaled and clamped between
public static abstract void FromScaledVector4(ReadOnlySpan<Vector4> source, Span<TSelf> destination)
Parameters
sourceReadOnlySpan<Vector4>The vector span to convert from.
destinationSpan<TSelf>The color span to write the results to.
ToScaledVector4()
Expands the pixel into a generic ("scaled") Vector4 representation
with values scaled and clamped between
Vector4 ToScaledVector4()
Returns
ToScaledVector4(ReadOnlySpan<TSelf>, Span<Vector4>)
Converts the span of colors to a generic ("scaled") Vector4 representation
with values scaled and clamped between
public static abstract void ToScaledVector4(ReadOnlySpan<TSelf> source, Span<Vector4> destination)
Parameters
sourceReadOnlySpan<TSelf>The color span to convert from.
destinationSpan<Vector4>The vector span to write the results to.