ImageData::GetMipLevelSize

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

GetMipLevelSize calculates the size of the given mipmap level in bytes, given format and size.

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

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