ColorUtil工具类
来源:互联网 发布:windows ftp上传命令 编辑:程序博客网 时间:2024/05/17 20:01
public class ColorUtil {public static Object evaluateColor(float fraction, Object startValue,Object endValue) {int startInt = (Integer) startValue;int startA = (startInt >> 24) & 0xff;int startR = (startInt >> 16) & 0xff;int startG = (startInt >> 8) & 0xff;int startB = startInt & 0xff;int endInt = (Integer) endValue;int endA = (endInt >> 24) & 0xff;int endR = (endInt >> 16) & 0xff;int endG = (endInt >> 8) & 0xff;int endB = endInt & 0xff;return (int) ((startA + (int) (fraction * (endA - startA))) << 24)| (int) ((startR + (int) (fraction * (endR - startR))) << 16)| (int) ((startG + (int) (fraction * (endG - startG))) << 8)| (int) ((startB + (int) (fraction * (endB - startB))));}}
0 0
- ColorUtil工具类
- java 字体颜色转换工具类 ColorUtil
- 18.Android 颜色工具类ColorUtil
- Java 字体颜色转换工具类 ColorUtil
- 工具类
- 工具类!!!!
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- Sublime text 3 3103 注册码
- "Android中的动画"-Android面试必问"精华技能点"汇总
- C 实现解析Json字符串
- Maven 和 Gradle 对比
- jQuery file upload实现异步文件上传(带进度条)转载
- ColorUtil工具类
- LeetCode Oj 203. Remove Linked List Elements
- eclipse导入maven项目
- myeclipse下启动tomcat报错:org/apache/catalina/startup/Bootstrap
- **PHP** 表单(1)-表单处理
- 自定义窗口的移动(二)
- POJ 2796 Feel Good(并查集)
- 自定义控件 非常有质感的音量控制按钮
- 斯坦福大学深度学习与自然语言处理第一讲:引言