Property ColorContext
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
ColorContext
Gets the color context (color profile) associated with the bitmap, or null if there is none.
IColorContext? ColorContext { get; }
Property Value
Remarks
Alpha8 bitmaps, such as the selection mask bitmap, will not have a color context because
they are color space invariant.
If the pixel format requires linear gamma, which is true for all floating point formats such
as Rgba128Float, then this color context will be linearized. To
get the original color context with the transfer curve, use the ColorContext
property (you may need to cast Environment.Document
to IEffectDocumentInfo).