首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

取ARGB色彩的分度值

2012-07-18 
取ARGB颜色的分度值private static int getR32(int c) { return (c 0) & 0xFF }// access the red comp

取ARGB颜色的分度值

        private static int getR32(int c) { return (c >>  0) & 0xFF; }        // access the red component from a premultiplied color        private static int getG32(int c) { return (c >>  8) & 0xFF; }        // access the red component from a premultiplied color        private static int getB32(int c) { return (c >> 16) & 0xFF; }        // access the red component from a premultiplied color        private static int getA32(int c) { return (c >> 24) & 0xFF; }
?

热点排行