HRESULT Resize(
const Image &srcImage,
size_t width,
size_t height,
DWORD filter,
ScratchImage &image
)
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.
Type: HRESULT
Note that if given a set of images, the result will always have mipLevels of 1.
Header: Declared in directxtex.h.