从图像获取主题样式 ColorArt
- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/MichaelEvans/ColorArt
- 官方下载: https://github.com/MichaelEvans/ColorArt
软件介绍
ColorArt 是一个Android开源库,可方便地从图像中自动获取主题样式的代码库。这个项目最初的版本出自流行的 Panic 的 OS X library。
这里记录下Android版的ColorArt的使用方法:
向build.gradle文件增加依赖库ColorArt:
compile 'org.michaelevans.colorart:library:0.0.1'
使用API:
// get a bitmap and analyze it Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.album); ColorArt colorArt = new ColorArt(bitmap); // get the colors colorArt.getBackgroundColor() colorArt.getPrimaryColor() colorArt.getSecondaryColor() colorArt.getDetailColor() FadingImageView
FadingImageView类:
mFadingImageView.setBackgroundColor(colorArt.getBackgroundColor(), FadingImageView.FadeSide.LEFT); //This will set the fading edge on the left side, with that background color. You can also enable/disable the fade with: mImageView.setFadeEnabled(true/false);
示例测试截图:
构建高性能Web站点
郭欣 / 电子工业出版社 / 2009-8 / 59.00元
本书围绕如何构建高性能Web站点,从多个方面、多个角度进行了全面的阐述,涵盖了Web站点性能优化的几乎所有内容,包括数据的网络传输、服务器并发处理能力、动态网页缓存、动态网页静态化、应用层数据缓存、分布式缓存、Web服务器缓存、反向代理缓存、脚本解释速度、页面组件分离、浏览器本地缓存、浏览器并发请求、文件的分发、数据库I/O优化、数据库访问、数据库分布式设计、负载均衡、分布式文件系统、性能监控等。......一起来看看 《构建高性能Web站点》 这本书的介绍吧!
在线进制转换器
各进制数互转换器
html转js在线工具
html转js在线工具
