Table of Contents

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

colorSpace KnownColorSpace
cicpColorSpace CicpColorSpace

Returns

bool

true and the CICP color space if the known color space has a CICP representation; otherwise false.

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.