ImageData::GetMipLevelsSize

ImageData::GetMipLevelsSize
static UPInt SF_STDCALL GetMipLevelsSize(ImageFormat format, const ImageSize& sz, unsigned levels, unsigned plane = 0);
Description

GetMipLevelSize calculates the total size of all mipmaps levels in bytes, given format and size.

Parameters
Parameters 
Description 
ImageFormat format 
The ImageFormat of the mipmap. 
const ImageSize& sz 
The size of the image. 
unsigned levels 
The number of levels to sum. 
unsigned plane = 0 
The index of the corresponding plane. 
Return Value

A UPInt value containing the size of the mipmap level in bytes.