SaveToDDSMemory (const Image*, size_t, const TexMetadata&, DWORD, Blob&)

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

Syntax

HRESULT SaveToDDSMemory(
         const Image *images,
         size_t nimages,
         const TexMetadata &metadata,
         DWORD flags,
         Blob &blob
)  

Parameters

images
Type: Image *

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

nimages
Type: size_t 

[in] Number of images.

metadata
Type: TexMetadata 

[in] Address of a TexMetadata structure.

flags
Type: DWORD 

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

blob
Type: Blob 

[out] Pointer to a Blob class instance.

Return value

Type: HRESULT 

Success or error code.

Requirements

Header: Declared in directxtex.h.