Method CreateColorContext
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Framework.dll
CreateColorContext(IImagingFactory, KnownColorSpace)
public static IColorContext CreateColorContext(this IImagingFactory factory, KnownColorSpace colorSpace)
Parameters
factory
IImagingFactorycolorSpace
KnownColorSpace
Returns
CreateColorContext(IImagingFactory, IReadOnlyList<byte>)
public static IColorContext CreateColorContext(this IImagingFactory factory, IReadOnlyList<byte> profileBytes)
Parameters
factory
IImagingFactoryprofileBytes
IReadOnlyList<byte>
Returns
CreateColorContext(IImagingFactory, IReadOnlyList<byte>, int, int)
public static IColorContext CreateColorContext(this IImagingFactory factory, IReadOnlyList<byte> profileBytes, int startIndex, int length)
Parameters
factory
IImagingFactoryprofileBytes
IReadOnlyList<byte>startIndex
intlength
int
Returns
CreateColorContext(IImagingFactory, DeviceColorSpace)
Creates an sRGB or scRGB color context.
public static IColorContext CreateColorContext(this IImagingFactory factory, DeviceColorSpace colorSpace)
Parameters
factory
IImagingFactorycolorSpace
DeviceColorSpace