判断图像尺寸是否是2的幂次

1 imgWidth & (imgWidth - 1)   // 返回0,表示imgWidth是2^n,否则不是

猜你喜欢

转载自www.cnblogs.com/avin/p/9076015.html