IWICDdsFrameDecode::GetFormatInfo method (wincodec.h)

Gets information about the format in which the DDS image is stored.

Syntax

HRESULT GetFormatInfo(
  [out] WICDdsFormatInfo *pFormatInfo
);

Parameters

[out] pFormatInfo

Type: WICDdsFormatInfo*

Information about the DDS format.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This information can be used for allocating memory or constructing Direct3D or Direct2D resources, for example by using ID3D11Device::CreateTexture2D or ID2D1DeviceContext::CreateBitmap.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header wincodec.h
Library Windowscodecs.lib
DLL Windowscodecs.dll

See also

CreateBitmap

ID3D11Device::CreateTexture2D

IWICDdsFrameDecode

WICDdsFormatInfo