Table of Contents

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.

CreateColorContext(IDeviceColorContextFactory, KnownColorSpace)
CreateColorContext(IDeviceColorContextFactory, IReadOnlyList<byte>)
CreateColorContext(IDeviceColorContextFactory, IReadOnlyList<byte>, int, int)
CreateDefaultColorContext(IDeviceColorContextFactory, in PixelFormat)
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.

TryCreateDefaultColorContext(IDeviceColorContextFactory, in PixelFormat)
TryCreateDefaultColorContext(IDeviceColorContextFactory, in PixelFormat, out IDeviceColorContext?)
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.