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 apply filters to BitmapData 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.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...