Method CreateColorContext
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Framework.dll
CreateColorContext(IDeviceColorContextFactory, KnownColorSpace)
public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, KnownColorSpace colorSpace)
Parameters
factory
IDeviceColorContextFactorycolorSpace
KnownColorSpace
Returns
CreateColorContext(IDeviceColorContextFactory, IReadOnlyList<byte>)
public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, IReadOnlyList<byte> profileBytes)
Parameters
factory
IDeviceColorContextFactoryprofileBytes
IReadOnlyList<byte>
Returns
CreateColorContext(IDeviceColorContextFactory, IReadOnlyList<byte>, int, int)
public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, IReadOnlyList<byte> profileBytes, int startIndex, int length)
Parameters
factory
IDeviceColorContextFactoryprofileBytes
IReadOnlyList<byte>startIndex
intlength
int
Returns
CreateColorContext(IDeviceColorContextFactory, ExifColorSpace)
Creates an sRGB or Adobe RGB color context.
public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, ExifColorSpace colorSpace)
Parameters
factory
IDeviceColorContextFactorycolorSpace
ExifColorSpace