Method CreateLinearizedColorContextOrScRgb
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.Framework.dll
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.
public static IDeviceColorContext CreateLinearizedColorContextOrScRgb(this IDeviceColorContextFactory factory, IDeviceColorContext baseColorContext)
Parameters
factory
IDeviceColorContextFactorybaseColorContext
IDeviceColorContext