天天看點

判斷圖像尺寸是否是2的幂次

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

轉載于:https://www.cnblogs.com/avin/p/9076015.html

繼續閱讀