EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Convolutionfilter (Flash.filters.convolutionfilter)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ConvolutionFilter (flash.filters.ConvolutionFilter) 457
stopMenuItem.visible = false;
}
function startHandler(obj, item) {
trace("Starting... "+getTimer()+"ms");
startMenuItem.visible = false;
stopMenuItem.visible = true;
}
this.menu = my_cm;
ConvolutionFilter
(flash.filters.ConvolutionFilter)
Object
|
+-flash.filters.BitmapFilter
|
+-flash.filters.ConvolutionFilter
public class ConvolutionFilter
extends BitmapFilter
The ConvolutionFilter class applies a matrix convolution filter effect. A convolution
combines pixels in the input image with neighboring pixels to produce an image. A wide
variety of imaging operations can be achieved through convolutions, including blurring, edge
detection, sharpening, embossing, and beveling. You can apply this effect on bitmaps and
MovieClip instances.
The use of filters depends on the object to which you apply the filter:
To apply filters to movie clips at runtime, use the filters property. Setting the filters
property of an object does not modify the object and can be undone by clearing the
filters property.
To a pply f ilters to Bi t m a p Data instances, use the BitmapData.applyFilter() method.
Calling
applyFilter() on a BitmapData object takes the source BitmapData object and
the filter object and generates a filtered image as a result.
You can also apply filter effects to images and video at authoring time. For more information,
see your authoring documentation.
If you apply a filter to a movie clip or button, the
cacheAsBitmap property of the movie clip
or button is set to
true. If you clear all filters, the original value of cacheAsBitmap is
restored.

Table of Contents

Related product manuals