IT Community - Software Programming, Web Development and Technical Support

Change color video to Black and white

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Flash Actionscript Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-29-2007, 10:57 PM
arunsamini arunsamini is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 8
arunsamini is on a distinguished road
Post Change color video to Black and white

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-30-2007, 01:49 AM
shiva shiva is offline
Super Moderator
 
Join Date: Feb 2007
Location: Chennai
Posts: 53
shiva is on a distinguished road
Send a message via AIM to shiva Send a message via MSN to shiva
Default Re: Change color video to Black and white

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-31-2007, 02:50 AM
arunsamini arunsamini is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 8
arunsamini is on a distinguished road
Default Re: Change color video to Black and white

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-31-2007, 07:14 AM
arunsamini arunsamini is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 8
arunsamini is on a distinguished road
Post Re: Change color video to Black and white

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 07:01 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0