Table of Contents

Method TryCreateDefaultColorContext

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

TryCreateDefaultColorContext(in PixelFormat)

public static IColorContext? TryCreateDefaultColorContext(this in PixelFormat pixelFormat)

Parameters

pixelFormat PixelFormat

Returns

IColorContext

TryCreateDefaultColorContext(in PixelFormat, out IColorContext?)

public static bool TryCreateDefaultColorContext(this in PixelFormat pixelFormat, out IColorContext? colorContext)

Parameters

pixelFormat PixelFormat
colorContext IColorContext

Returns

bool