IWICDdsFrameDecode::GetFormatInfo-Methode (wincodec.h)

Ruft Informationen zum Format ab, in dem das DDS-Image gespeichert ist.

Syntax

HRESULT GetFormatInfo(
  [out] WICDdsFormatInfo *pFormatInfo
);

Parameter

[out] pFormatInfo

Typ: WICDdsFormatInfo*

Informationen zum DDS-Format.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Hinweise

Diese Informationen können zum Zuweisen von Arbeitsspeicher oder zum Erstellen von Direct3D- oder Direct2D-Ressourcen verwendet werden, z. B. mithilfe von ID3D11Device::CreateTexture2D oder ID2D1DeviceContext::CreateBitmap.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 8.1 [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2012 R2 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile wincodec.h
Bibliothek Windowscodecs.lib
DLL Windowscodecs.dll

Weitere Informationen

CreateBitmap

ID3D11Device::CreateTexture2D

IWICDdsFrameDecode

WICDdsFormatInfo