dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to make video black & white

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    38

    how to make video black & white

    hi flashkit,

    is there ANY way to make a colored video file into black & white by using flash itself??? Any answer kindly appreciated.

    Tks, intan

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    London
    Posts
    361
    You can use this code:
    Code:
    import flash.filters.ColorMatrixFilter;
    
    var mat:Array = [.33,.33,.33,0,0,
    				 .33,.33,.33,0,0,
    				 .33,.33,.33,0,0,
    				 0,0,0,1,0 ];
    var colorMat:ColorMatrixFilter = new ColorMatrixFilter(mat);
    clip.filters = [colorMat];

    I did a search on google for flash+grayscale and it found this doc:
    http://www.adobe.com/devnet/flash/ar...ations_04.html
    which is where the above code is from.
    Last edited by Dene; 09-12-2007 at 10:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center