This is a discussion on Change color video to Black and white within the Flash Actionscript Programming forums, part of the Web Development category; Hi..to all! How we can change the color video to black and white when play the video..If any ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi..to all! How we can change the color video to black and white when play the video..If any tricks or techniques will be there in flash to change color video to balck and white ...help me.. ![]() Last edited by arunsamini : 11-01-2007 at 10:26 PM. |
| Sponsored Links |
| |||
| Hi, Check this to see if it helps you :: Gradually Change Color Video to Black & White :: Thanks Shiva...
__________________ The real voyage of discovery consists not in seeking new landscapes, but in having new eyes |
| |||
| Ok..Thanks Shiva...ur video guide for change the color of video to balck and white is nice....Its possible in Adobe Premier6.0 am i right...But i want any way to change the similar concepts in flash...If u know reply me... ![]() Last edited by arunsamini : 11-01-2007 at 10:23 PM. |
| |||
| hi.. Its easy to change the color Video to balck and white by using bitmap data class and ColorMatrixFilter class.The following steps should be followed to check that.. 1)Right click from Library then select New Video..Then drag the Video from Library to stage and name it as "Video1". 2)Then create a Movieclip with "Video1" and name as "main".i.e.Video is there inside the MovieClip "main". 3) Then add following code to maintime line //AS2.0 Coding import flash.display.BitmapData; import flash.geom.*; import flash.filters.*; //var mode:String="<"; //var fill:Number=0; //var th:Number=0x808080; var arr:Array = [0.3, 0.59, 0.11, 0, 0,0.3, 0.59, 0.11, 0, 0,0.3, 0.59, 0.11, 0, 0,0, 0, 0, 1, 0]; var col:ColorMatrixFilter = new ColorMatrixFilter(arr); var bmp:BitmapData=new BitmapData(main._width,main._height); var mc2:MovieClip=_root.createEmptyMovieClip("mck",_ro ot.getNextHighestDepth()); mc2.attachBitmap(bmp,2); mc2.filters=[col]; //mc2.filters=[new BlurFilter(4,4,2)]; mc2._x=440; mc2._y=20; var nc:NetConnection=new NetConnection(); nc.connect(null); var ns:NetStream=new NetStream(nc); main.Video1.attachVideo(ns); ns.play("E:/Arun/Flash works/Video/Video5.flv"); main.onEnterFrame=function(){ bmp.draw(this.Video1,new Matrix(1,0,0,1,0,0)); //bmp.threshold(bmp,bmp.rectangle,new Point(),mode,th,fill,0xffffff,true); } 4)Then save the application and run. Thanks S.Arun ![]() Less Talk Work More Last edited by arunsamini : 10-31-2007 at 07:16 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Black box/white box testing? | srikumar_l | Software Testing | 5 | 05-14-2008 03:28 AM |
| To change the BackGround Color of Submenus without using CSS | kingmaker | HTML, CSS and Javascript Coding Techniques | 1 | 01-20-2008 09:20 PM |
| Black Box & White box testing | prasath | Software Testing | 2 | 08-28-2007 07:12 AM |
| How to change the row color of the Repeater based on some condition? | kingmaker | ASP and ASP.NET Programming | 1 | 07-26-2007 01:03 AM |
| How to change the row color of the Repeater based on some condition? | kingmaker | ASP and ASP.NET Programming | 1 | 07-24-2007 12:01 AM |