Property InputColorContext
- Namespace
- PaintDotNet.Effects.Gpu
- Assembly
- PaintDotNet.Effects.Gpu.dll
InputColorContext
Specifies the color context of the Input image, which is used to optimize the quality of this effect's rendering.
public EffectPropertyAccessor<IDeviceColorContext?> InputColorContext { get; }
Property Value
Remarks
If this property is set (is non-null
, in other words), the image will be converted to linear
gamma for some of the effect's internal rendering, while remaining in the original gamma (specified
by this property) for other portions of rendering. The output of this effect will be in the color
space defined by this property.
This effect's rendering quality is optimal when the Input image has not been linearized,
and this property is set to its (non-linearized) color context.
For Paint.NET GPU effect plugins, this means you should specify WorkingSpace
for the ColorContext property in your OnInitializeRenderInfo(IGpuEffectRenderInfo)
implementation. You can then set this property with the value of ColorContext,
or with the ColorContext property of SourceImage.