SaveToTGAMemory

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

Syntax

HRESULT SaveToTGAMemory(
         const Image &image,
         Blob &blob
)  

Parameters

image
Type: Image 

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

blob
Type: Blob 

[out] Pointer to a Blob class instance.

Return value

Type: HRESULT 

Success or error code.

Requirements

Header: Declared in directxtex.h.