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

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

 

posted @ 2018-05-23 11:29  Avin  阅读(364)  评论(0编辑  收藏  举报