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
TSelfThe type of color profile.
TProfileSpaceThe 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
optionsColorConversionOptionsThe color profile conversion options.
sourceTProfileSpaceThe 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
optionsColorConversionOptionsThe color profile conversion options.
sourceReadOnlySpan<TProfileSpace>The color profile span to convert from.
destinationSpan<TSelf>The color span to write the results to.
ToProfileConnectingSpace(ColorConversionOptions)
Converts the color to the profile connection space.
TProfileSpace ToProfileConnectingSpace(ColorConversionOptions options)
Parameters
optionsColorConversionOptionsThe 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
optionsColorConversionOptionsThe color profile conversion options.
sourceReadOnlySpan<TSelf>The color span to convert from.
destinationSpan<TProfileSpace>The color profile span to write the results to.