Table of Contents

Method CreateColorContext

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Framework.dll

CreateColorContext(IDeviceColorContextFactory, KnownColorSpace)

public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, KnownColorSpace colorSpace)

Parameters

factory IDeviceColorContextFactory
colorSpace KnownColorSpace

Returns

IDeviceColorContext

CreateColorContext(IDeviceColorContextFactory, IReadOnlyList<byte>)

public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, IReadOnlyList<byte> profileBytes)

Parameters

factory IDeviceColorContextFactory
profileBytes IReadOnlyList<byte>

Returns

IDeviceColorContext

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

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

Parameters

factory IDeviceColorContextFactory
profileBytes IReadOnlyList<byte>
startIndex int
length int

Returns

IDeviceColorContext

CreateColorContext(IDeviceColorContextFactory, ExifColorSpace)

Creates an sRGB or Adobe RGB color context.

public static IDeviceColorContext CreateColorContext(this IDeviceColorContextFactory factory, ExifColorSpace colorSpace)

Parameters

factory IDeviceColorContextFactory
colorSpace ExifColorSpace

Returns

IDeviceColorContext