Class DeviceColorContextFactoryExtensions
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Framework.dll
public static class DeviceColorContextFactoryExtensions
- Inheritance
-
DeviceColorContextFactoryExtensions
- Inherited Members
Methods
- CreateColorContext(IDeviceColorContextFactory, ExifColorSpace)
Creates an sRGB or Adobe RGB color context.
- CreateLinearizedColorContextOrScRgb(IDeviceColorContextFactory, IDeviceColorContext)
Creates a linearized version of the given color context, or creates an scRGB color context if the given one cannot be linearized. See TryCreateLinearizedColorContext(IDeviceColorContextFactory, IDeviceColorContext) for more information.
- TryCreateLinearizedColorContext(IDeviceColorContextFactory, IDeviceColorContext)
Creates a linearized version of the given color context. This removes the transfer curve (TRC) and enables the use of linear gamma with most color contexts. If the color context cannot be linearized then
null
will be returned. If the color context is already linearized then a copy will be made using the given factory.