Method TryGetCicpColorSpace
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
TryGetCicpColorSpace(KnownColorSpace, out CicpColorSpace)
Tries to get the CICP code points that describe the given known color space.
public static bool TryGetCicpColorSpace(this KnownColorSpace colorSpace, out CicpColorSpace cicpColorSpace)
Parameters
colorSpaceKnownColorSpacecicpColorSpaceCicpColorSpace
Returns
- bool
trueand the CICP color space if the known color space has a CICP representation; otherwisefalse.
Remarks
Not every known color space has a CICP representation: ITU-T H.273 defines no
CicpColorPrimaries code point for the Adobe RGB or ROMM/ProPhoto primaries, so
AdobeRgb and ProPhotoRgb yield
false. See also CicpColorSpaces.