Flex3学习轨迹:将彩色照片转换成黑白照片
来源:互联网 发布:.win域名万网下架 编辑:程序博客网 时间:2024/06/11 19:52
通常情况下,彩色图片转换成黑白图片需要使用一定的算法来实现。在这里就使用滤镜类来实现转换。
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" fontSize="12" > <mx:Script> <![CDATA[ private var rLum:Number = 0.2225; private var gLum:Number = 0.7169; private var bLum:Number = 0.0606; [Bindable] private var bwMatrix:Array = [rLum, gLum, bLum, 0, 0, rLum, gLum, bLum, 0, 0, rLum, gLum, bLum, 0, 0, 0, 0, 0, 1, 0]; [Bindable] [Embed('assets/image.jpg')] private var image1:Class; ]]> </mx:Script> <mx:ColorMatrixFilter id="cmf" matrix="{bwMatrix}" /> <mx:Panel title="实现将彩色图片转换为黑白色" width="360" height="240" verticalAlign="middle" horizontalAlign="center"> <mx:HBox> <mx:VBox> <mx:Label text="原始图片" /> <mx:Image source="{image1}" /> </mx:VBox> <mx:VBox> <mx:Label text="黑白图片" /> <mx:Image source="{image1}" filters="{[cmf]}" /> </mx:VBox> </mx:HBox> </mx:Panel></mx:Application>
- Flex3学习轨迹:将彩色照片转换成黑白照片
- 将彩色照片变成黑白照片
- ps彩色照片变黑白照片
- 【PS】黑白照片改为彩色照片
- 彩色照片转化为黑白照片
- 彩色图片转换为黑白照片
- 黑白照片
- 在网页中利用css滤镜将彩色照片处理为黑白
- OpenCV_把彩色照片转换成素描卡通片
- [GDI+]如何将一个彩色图像转换成黑白图像
- 如何将一个彩色图像转换成黑白图像
- 如何将一个彩色图像转换成黑白图像
- [GDI+]如何将一个彩色图像转换成黑白图像
- 如何将一个彩色图像转换成黑白图像
- 给黑白照片上色!
- 彩色图,然后将其转换成灰色图到黑白图
- 照片如何转换成pdf
- 彩色证件照片背景RGB
- VMWare Server 2.0虚拟机安装Windows Server 2003网卡工作不正常的解决
- bitmap优化
- 在bump mapping中使用normalize cube map的原因
- java的notify方法为什么也要同步
- c#合并Dictionary
- Flex3学习轨迹:将彩色照片转换成黑白照片
- android初级开发
- f:selectItems - JSF标签 f:selectItems 的使用方法
- IPhone UIButton 属性
- Git 分支原理分析与实际操作
- 一个老测试员对软件测试理解(需要掌握哪些知识)
- enum 和 typedef
- javascript正则表达式验证邮箱
- asp.Net 一些常用的方法和类