Property Srgb
- Namespace
- PaintDotNet.Effects.Gpu
- Assembly
- PaintDotNet.Effects.Core.dll
Srgb
Gets a color context that specifies the sRGB color space, which uses a gamma value of approximately 2.2.
public static GpuEffectColorContext Srgb { get; }
Property Value
Remarks
Compared to WorkingSpaceLinear, this color context may be more familiar or comfortable
if you are accustomed to working with 32-bit BGRA/RGBA pixel data, which is always stored as sRGB.
However, operations on color values, such as blending, sampling, antialiasing, and filtering, will
not preserve perceptual luminance. Colors will generally end up darker than they should.
If you need predefined color values (e.g. red, blue, etc.), use the SrgbColors class.
Many images are stored as sRGB, which means that most of the time using this color context is
equivalent to using WorkingSpace. However, if an image is not stored as sRGB, this
color context will convert it to sRGB. In some cases this may result in gamut clipping.
For more information, see: sRGB - Wikipedia