Table of Contents

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

TSelf

The 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 0 and 1.

public static abstract TSelf FromScaledVector4(Vector4 source)

Parameters

source Vector4

The 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 0 and 1.

public static abstract void FromScaledVector4(ReadOnlySpan<Vector4> source, Span<TSelf> destination)

Parameters

source ReadOnlySpan<Vector4>

The vector span to convert from.

destination Span<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 0 and 1. The vector components are typically expanded in least to greatest significance order.

Vector4 ToScaledVector4()

Returns

Vector4

The Vector4.

ToScaledVector4(ReadOnlySpan<TSelf>, Span<Vector4>)

Converts the span of colors to a generic ("scaled") Vector4 representation with values scaled and clamped between 0 and 1.

public static abstract void ToScaledVector4(ReadOnlySpan<TSelf> source, Span<Vector4> destination)

Parameters

source ReadOnlySpan<TSelf>

The color span to convert from.

destination Span<Vector4>

The vector span to write the results to.