TryConvertToConnectionSpace(ReadOnlySpan, Span, RenderingIntent) Method

Definition

Assembly Broadside.Rendering.dll

Converts one device colour to the profile connection space.

public bool TryConvertToConnectionSpace(ReadOnlySpan<float> device, Span<float> connection, RenderingIntent intent = RenderingIntent.RelativeColorimetric)

Parameters

device
ReadOnlySpan<Single>

The colour's ComponentCount components, each 0 to 1 (clipped).

connection
Span<Single>

Receives three values in the profile's connection space (ConnectionSpace): X, Y and Z with the PCS white's Y = 1, or L* (0 to 100), a* and b*.

intent
RenderingIntent

The rendering intent, which chooses the tag (ICC.1:2022 §8.10.2, Table 25).

Returns

Boolean
Whether the profile has tags to convert by: false for Other.

Remarks

ICC.1:2022 §10.10 to §10.12 and Annex F.2, F.3: media-relative PCS values (§6.3.2.1), or ICC-absolute ones for AbsoluteColorimetric (§6.3.2.2, Equation 4: scaled by the media white point over the PCS white).