Table of Contents

Property CanColorTransformFrom

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

CanColorTransformFrom

Gets whether a color transform can be performed from these code points (i.e. whether they can be used as the source of a color transform). This is true when the matrix coefficients are Identity and either the transfer is PQ (SmpteSt2084PQ) or HLG (AribStdB67Hlg), which are decoded by a dedicated kernel, or the primaries and transfer characteristics are both representable as an ICC profile.

Unlike CanCreateColorContext, the video full range flag does not matter here: narrow (Narrow) range is expanded to full range as part of the transform.

More specifically, when this is true, it is possible to use CreateColorTransformedBitmap(IImagingFactory, IBitmapSource, CicpColorSpace, IColorContext, in PixelFormat) and CreateColorTransformer(IBitmapSource, CicpColorSpace, IColorContext, in PixelFormat), or one of the other overloads which take a CicpColorSpace.

public bool CanColorTransformFrom { get; }

Property Value

bool