Returns how many mipmap levels can be created for image of given size.
function GetNumMipMapLevels(Width: LongInt; Height: LongInt): LongInt;
ImagingUtility (at line 263)