Table of Contents

Interface IColorProfile<TSelf, TProfileSpace>

Namespace
SixLabors.ImageSharp.ColorProfiles
Assembly
SixLabors.ImageSharp.dll

Defines the contract for all color profiles.

public interface IColorProfile<TSelf, TProfileSpace> : IColorProfile<TSelf>, IColorProfile, IEquatable<TSelf> where TSelf : IColorProfile<TSelf, TProfileSpace> where TProfileSpace : struct, IProfileConnectingSpace

Type Parameters

TSelf

The type of color profile.

TProfileSpace

The type of color profile connecting space.

Inherited Members

Methods

FromProfileConnectingSpace(ColorConversionOptions, in TProfileSpace)

Initializes the color instance from the profile connection space.

public static abstract TSelf FromProfileConnectingSpace(ColorConversionOptions options, in TProfileSpace source)

Parameters

options ColorConversionOptions

The color profile conversion options.

source TProfileSpace

The color profile connecting space.

Returns

TSelf

The TSelf.

FromProfileConnectionSpace(ColorConversionOptions, ReadOnlySpan<TProfileSpace>, Span<TSelf>)

Converts the span of colors from the profile connection space.

public static abstract void FromProfileConnectionSpace(ColorConversionOptions options, ReadOnlySpan<TProfileSpace> source, Span<TSelf> destination)

Parameters

options ColorConversionOptions

The color profile conversion options.

source ReadOnlySpan<TProfileSpace>

The color profile span to convert from.

destination Span<TSelf>

The color span to write the results to.

ToProfileConnectingSpace(ColorConversionOptions)

Converts the color to the profile connection space.

TProfileSpace ToProfileConnectingSpace(ColorConversionOptions options)

Parameters

options ColorConversionOptions

The color profile conversion options.

Returns

TProfileSpace

The TProfileSpace.

ToProfileConnectionSpace(ColorConversionOptions, ReadOnlySpan<TSelf>, Span<TProfileSpace>)

Converts the span of colors to the profile connection space.

public static abstract void ToProfileConnectionSpace(ColorConversionOptions options, ReadOnlySpan<TSelf> source, Span<TProfileSpace> destination)

Parameters

options ColorConversionOptions

The color profile conversion options.

source ReadOnlySpan<TSelf>

The color span to convert from.

destination Span<TProfileSpace>

The color profile span to write the results to.