Table of Contents

Method CreateCompatibleDeviceContext

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

CreateCompatibleDeviceContext(IDeviceContext, SizeFloat, SizeInt32, DxgiFormat, AlphaMode, CompatibleDeviceContextOptions)

public static ICompatibleDeviceContext CreateCompatibleDeviceContext(this IDeviceContext deviceContext, SizeFloat desiredSize, SizeInt32 desiredPixelSize, DxgiFormat dxgiFormat, AlphaMode alphaMode, CompatibleDeviceContextOptions options = CompatibleDeviceContextOptions.None)

Parameters

deviceContext IDeviceContext
desiredSize SizeFloat
desiredPixelSize SizeInt32
dxgiFormat DxgiFormat
alphaMode AlphaMode
options CompatibleDeviceContextOptions

Returns

ICompatibleDeviceContext