Table of Contents

Class GpuEffectColorContext

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

Secifies the color space that a GpuEffect performs its rendering in. Input images will be converted to this color space, and the output of the effect will then be converted back to the working space of the source image.

public abstract class GpuEffectColorContext
Inheritance
GpuEffectColorContext
Inherited Members

Properties

ScRgb

Gets a color context that specifies the scRGB color space, which is the linear gamma, wide gamut expansion of sRGB.

Srgb

Gets a color context that specifies the sRGB color space, which uses a gamma value of approximately 2.2.

WorkingSpace

Gets a color context that matches the source image, which results in no color space conversion. Only precision and pixel format conversion will be performed. For example, Bgra32 will be converted to Rgba128Float by dividing each color component by 255.0f and swizzling from BGR to RGB order. Gamma is unchanged.

WorkingSpaceLinear

Gets a color context that matches the source image and which has been converted to use linear (1.0) gamma.