调整图像的颜色(ColorMatrixFilter)
来源:互联网 发布:ds1302怎么写数据 编辑:程序博客网 时间:2024/05/22 04:47
mport flash.filters.ColorMatrixFilter;
(1)
//var matrix:Array = new Array();//颜色亮度减少
//matrix = matrix.concat([1, 0, 0, -.5, 0]); // red
//matrix = matrix.concat([0, 1, 0, -.5, 0]); // green
//matrix = matrix.concat([0, 0, 1, -.5, 0]); // blue
//matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha
//this.mc.filters = [new ColorMatrixFilter(matrix)];
(2)
//var matrix:Array = new Array();//颜色亮度增加为,RGB的三通道的1。5倍,即变亮,1。5倍
//matrix = matrix.concat([1, 0, 0, 0.5, 0]); // red
//matrix = matrix.concat([0, 1, 0, 0.5, 0]); // green
//matrix = matrix.concat([0, 0, 1, 0.5, 0]); // blue
//matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha
//this.mc.filters= [new ColorMatrixFilter(matrix)];
(3)灰色
var grayFilter:ColorMatrixFilter = new ColorMatrixFilter([
1 / 3, 1 / 3, 1 / 3, 0,0,
1 / 3, 1 / 3, 1 / 3, 0, 0,
1 / 3, 1 / 3,1 / 3, 0, 0,
0, 0, 0, 1, 0]);
this.mc.filters = [grayFilter];
(4) 旧照片效果
var filterObj = new flash.filters.ColorMatrixFilter();
filterObj.matrix = new Array(
1/2,1/2,1/2,0,0,
1/3,1/3,1/3,0,0,
1/4,1/4,1/4,0,0,
0, 0, 0,1,0);
this.mc.filters = [filterObj];
(5)红绿反色
var filterObj = new flash.filters.ColorMatrixFilter();
filterObj.matrix = new Array(
0,0,1,0,0,
0,1,0,0,0,
1,0,0,0,0,
0,0,0,1,0);
this.mc.filters = [filterObj];
- 调整图像的颜色(ColorMatrixFilter)
- Flash中的颜色矩阵(ColorMatrixFilter)
- ColorMatrixFilter--颜色矩阵滤镜
- ColorMatrixFilter--颜色矩阵滤镜
- 颜色矩阵滤镜-ColorMatrixFilter
- ColorMatrixFilter--颜色矩阵滤镜
- ggplot2 调整图像颜色
- as3.0的ColorMatrixFilter颜色矩阵滤镜详细介绍
- as3中颜色矩阵滤镜ColorMatrixFilter的使用
- Photoshop曲线:调整图像颜色
- 利用ColorMatrixFilter生成灰度图像
- 彩色图像颜色和饱和度调整办法
- Python: PS 图像调整--颜色梯度
- VB图像处理,(六)图像的亮度对比度调整
- (183)图像调整
- ColorMatrixFilter----“把任何颜色转换成任何颜色”
- 图像的颜色模式
- 图像亮度/对比度的调整
- C# 程序中如何向(DEV)ComboBoxEdit控件中添加下拉列表的值不使用数据绑定,就是使用代码添加
- 项目经理开门七件事
- nginx1.3.6 的简单配置和启动脚本
- 虚拟机构建mac qt开发环境
- ASP.NET中Bind和Eval的区别:两种绑定
- 调整图像的颜色(ColorMatrixFilter)
- 网页预览 html过滤标签
- C语言中的数据类型
- C++ 异常!!!
- Comet 应用程序开发
- hoj 1640 树状数组 简单题
- C#多线程数组启动终止和多参传递操作
- mvc3 action验证失败后的自定义处理
- 学生信息管理系统拾零