Menu:

¯
RSS  RSS 2.0

BlurFilter

Perhaps the simplest of all bitmap filters is BlurFilter. Yet, you can make some better use of it rather than just blurring things.

If you wonder how BlurFilter works, note that these two lines create filters with nearly identical resuls:

var filter1:BitmapFilter = new BlurFilter(3, 3, 1);
var filter2:BitmapFilter = new ConvolutionFilter (3, 3,
                                   [1,1,1, 1,1,1, 1,1,1], 9, 0, false);

Finally, let me QFE documentation:

Values [of blurX and blurY constructor parameters] that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.