Table of Contents

Property ColorContext

Namespace
PaintDotNet.Effects
Assembly
PaintDotNet.Effects.Core.dll

ColorContext

Gets the color context of the document, which defines the working space (color space) of the document and all of its layers. This will either be the embedded color profile from the image, or sRGB if it didn't have one.

IColorContext ColorContext { get; }

Property Value

IColorContext

Remarks

This color context will always be valid to use with WIC and Direct2D. If the document does not have an embedded color profile, or if it is invalid, then this will be either an sRGB or scRGB color context depending on the document's native pixel format.