|
本帖最后由 BruceLi 于 2014-7-11 16:08 编辑
Qt 曼德布洛特的例子(Mandelbrot )代码的含义
int halfWidth = resultSize.width() / 2;
int halfHeight = resultSize.height() / 2;
* QImage image(resultSize, QImage::Format_RGB32);
const int NumPasses = 8;
int pass = 0;
while (pass < NumPasses)
* {
const int MaxIterations = (1 << (2 * pass + 6)) + 32;
const int Limit = 4;
* bool allBlack = true;
请问:上述代码中,此条代码的含义是什么?
const int MaxIterations = (1 << (2 * pass + 6)) + 32;
|
|