TryParse(ReadOnlySpan, out IccProfile?, out String?) Method

Definition

Assembly Broadside.Rendering.dll

Reads a profile.

public static bool TryParse(ReadOnlySpan<byte> data, [NotNullWhen(true)] scoped out IccProfile? profile, [NotNullWhen(false)] scoped out string? problem)

Parameters

data
ReadOnlySpan<Byte>

The profile's bytes.

profile
IccProfile

The profile, when it can be read.

problem
String

Why it cannot, when it cannot: a phrase such as "its rTRC tag is missing".

Returns

Boolean
Whether the profile can be read. Never throws, whatever the bytes.

Remarks

ICC.1:2022 §7 to §10 and Annex F.