Table of Contents

Method CreateColorContext

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Framework.dll

CreateColorContext(IImagingFactory, KnownColorSpace)

public static IColorContext CreateColorContext(this IImagingFactory factory, KnownColorSpace colorSpace)

Parameters

factory IImagingFactory
colorSpace KnownColorSpace

Returns

IColorContext

CreateColorContext(IImagingFactory, IReadOnlyList<byte>)

public static IColorContext CreateColorContext(this IImagingFactory factory, IReadOnlyList<byte> profileBytes)

Parameters

factory IImagingFactory
profileBytes IReadOnlyList<byte>

Returns

IColorContext

CreateColorContext(IImagingFactory, IReadOnlyList<byte>, int, int)

public static IColorContext CreateColorContext(this IImagingFactory factory, IReadOnlyList<byte> profileBytes, int startIndex, int length)

Parameters

factory IImagingFactory
profileBytes IReadOnlyList<byte>
startIndex int
length int

Returns

IColorContext

CreateColorContext(IImagingFactory, DeviceColorSpace)

Creates an sRGB or scRGB color context.

public static IColorContext CreateColorContext(this IImagingFactory factory, DeviceColorSpace colorSpace)

Parameters

factory IImagingFactory
colorSpace DeviceColorSpace

Returns

IColorContext