Table of Contents

Method IsDxgiFormatSupported

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

IsDxgiFormatSupported(DxgiFormat)

Indicates whether the format is supported by the device context. The formats supported are usually determined by the underlying hardware.

bool IsDxgiFormatSupported(DxgiFormat format)

Parameters

format DxgiFormat

The DXGI format to check.

Returns

bool

true if the format is supported, false if the format is not supported.

Remarks

You can use the supported formats in the DevicePixelFormat struct to create bitmaps and render targets.
Direct2D doesn't support all DXGI formats, even though they may have some level of Direct3D support by the hardware.