Table of Contents

Method TryCreateDefaultColorContext

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Core.dll

TryCreateDefaultColorContext(IDeviceColorContextFactory, in PixelFormat)

public static IDeviceColorContext? TryCreateDefaultColorContext(this IDeviceColorContextFactory factory, in PixelFormat pixelFormat)

Parameters

factory IDeviceColorContextFactory
pixelFormat PixelFormat

Returns

IDeviceColorContext

TryCreateDefaultColorContext(IDeviceColorContextFactory, in PixelFormat, out IDeviceColorContext?)

public static bool TryCreateDefaultColorContext(this IDeviceColorContextFactory factory, in PixelFormat pixelFormat, out IDeviceColorContext? colorContext)

Parameters

factory IDeviceColorContextFactory
pixelFormat PixelFormat
colorContext IDeviceColorContext

Returns

bool