Recipe 16.9. Applying Filters to Video


Problem

You want to apply filter effects (blur, color, displacement map, etc.) to a video.

Solution

Assign an array of all the filters you want to apply to the Video object's filters property.

Discussion

The Video class inherits the filters property from the DisplayObject class. That means you can apply filters to Video objects just as you would any display object (see Recipe 10.5).

See Also

Recipe 10.5




ActionScript 3. 0 Cookbook
ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers
ISBN: 0596526954
EAN: 2147483647
Year: 2007
Pages: 351

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net