ColorMatrix cm = new ColorMatrix();cm.setSaturation(0.1f); // 设置饱和度ColorMatrixColorFilter grayColorFilter = new ColorMatrixColorFilter(cm);ImageView iv = findViewById(R.id.image);iv.setColorFilter(grayColorFilter); // 如果想恢复彩色显示,设置为null即可iv.setEnabled(false);
- 版权所有:奇站网络 转载请注明出处
- 厦门奇站网络科技有限公司,专业提供网站建设,响应式网站建设,小程序开发,系统定制开发。
- 软件开发咨询热线:吴小姐 13313868605
