SaveToDDSFile (const Image&, DWORD, LPCWSTR)

Saves one or more images in memory buffers to a .DDS file.

Syntax

HRESULT SaveToDDSFile(
         const Image &image,
         DWORD flags,
         LPCWSTR szFile
)  

Parameters

image
Type: Image 

[in] Pointer to one or more Image structures in a memory buffer.

flags
Type: DWORD 

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

szFile
Type: LPCWSTR 

[in] Source file.

Return value

Type: HRESULT 

Success or error code.

Requirements

Header: Declared in directxtex.h.