Table of Contents

Method CreateDefaultColorContext

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

CreateDefaultColorContext(IImagingFactory, in PixelFormat)

Creates the default color context for the given pixel format.

public static IColorContext CreateDefaultColorContext(this IImagingFactory factory, in PixelFormat pixelFormat)

Parameters

factory IImagingFactory
pixelFormat PixelFormat

Returns

IColorContext

Exceptions

UnsupportedPixelFormatException

Thrown if the pixel format does not have a default color context. For example, Alpha8 does not have a default color context (it is actually color space invariant in this case).