This topic has not yet been rated - Rate this topic

ID2D1DeviceContext::IsDxgiFormatSupported method

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

Syntax


BOOL IsDxgiFormatSupported(
  format DXGI_FORMAT
);

Parameters

DXGI_FORMAT

Type: format

The DXGI format to check.

Return value

Type: BOOL

Returns TRUE if the format is supported. Returns FALSE if the format is not supported.

Remarks

You can use supported formats in the D2D1_PIXEL_FORMAT structure 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.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps only]

Header

D2d1_1.h

DLL

D2d1.dll

See also

ID2D1DeviceContext

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.