Resize (const Image&, size_t, size_t, DWORD, ScratchImage&)

Resizes one or more images.

Syntax

HRESULT Resize(
         const Image &srcImage,
         size_t width,
         size_t height,
         DWORD filter,
         ScratchImage &image
)  

Parameters

srcImage
Type: Image 

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

width
Type: size_t 

[in] Desired width.

height
Type: size_t 

[in] Desired height.

filter
Type: DWORD 

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

image
Type: ScratchImage 

[out] Pointer to a ScratchImage class instance.

Return value

Type: HRESULT 

Success or error code.

Remarks

Note that if given a set of images, the result will always have mipLevels of 1.

Requirements

Header: Declared in directxtex.h.