Method TryGetKnownColorSpace
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
TryGetKnownColorSpace(out KnownColorSpace)
Tries to identify the KnownColorSpace that this CICP color space exactly describes.
public bool TryGetKnownColorSpace(out KnownColorSpace knownColorSpace)
Parameters
knownColorSpaceKnownColorSpace
Returns
- bool
trueand the known color space if this CICP color space exactly describes one; otherwisefalse.
Remarks
Unlike RecommendedColorSpace, which maps any primaries to the best-fitting gamut, this is an exact identification: it succeeds only for full-range, identity-matrix code points whose primaries and transfer function are those of a known color space. Transfer code points that share the same function (e.g. Bt2020TenBit and Bt709) are treated as equivalent. HDR transfers (PQ, HLG) never match, as no KnownColorSpace uses them.