Пример #1
0
 public static int CalculateMipSize(int width, int mipLevel)
 {
     mipLevel = Math.Min(mipLevel, Image.CountMips(width));
     width    = width >> mipLevel;
     return(width > 0 ? width : 1);
 }