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
IDeviceColorContextFactorypixelFormat
PixelFormat
Returns
TryCreateDefaultColorContext(IDeviceColorContextFactory, in PixelFormat, out IDeviceColorContext?)
public static bool TryCreateDefaultColorContext(this IDeviceColorContextFactory factory, in PixelFormat pixelFormat, out IDeviceColorContext? colorContext)
Parameters
factory
IDeviceColorContextFactorypixelFormat
PixelFormatcolorContext
IDeviceColorContext