Property WorkingSpace
- Namespace
- PaintDotNet.Effects.Gpu
- Assembly
- PaintDotNet.Effects.Core.dll
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.
public static GpuEffectColorContext WorkingSpace { get; }
Property Value
Remarks
This color context permits you to work with the original pixel data with the highest level of accuracy,
but with the added cost of complexity or loss of correctness. The image may be encoded in any color
space or gamma, and you will need to accommodate that or be implementing an effect where this is not
a concern.
Using this color context is generally not recommended unless you know what you're doing with respect
to color management, or if you require access to the raw pixel values no matter what, or if you will
not be doing any sort of blending, antialiasing, sampling, or filtering.