LoadFromWICFile

Loads a .WIC file.

Syntax

HRESULT LoadFromWICFile(
         LPCWSTR szFile,
         DWORD flags,
         TexMetadata *metadata,
         ScratchImage &image
)  

Parameters

szFile
Type: LPCWSTR 

[in] Source file.

flags
Type: DWORD 

[in] One or more flags from the WIC_FLAGS enumeration.

metadata
Type: TexMetadata *

Pointer to a TexMetadata structure.

image
Type: ScratchImage 

[out] Pointer to a ScratchImage class instance.

Return value

Type: HRESULT 

Success or error code.

Requirements

Header: Declared in directxtex.h.