The BlurFilter applies a gaussian blur to an object. The strength of the blur can be set for x- and y-axis separately (always relative to the stage).

A blur filter can also be set up as a drop shadow or glow filter. Use FilterFactory to create such a filter.

For each blur direction, the number of required passes is ceil(blur).

blur = 0.5: 1 pass

blur = 1.0: 1 pass

blur = 1.5: 2 passes

blur = 2.0: 2 passes

etc.

Inheritance: FragmentFilter
 /// <summary>
 /// Creates a glow with a specified color, alpha, blur and resolution.
 /// </summary>
 public static BlurFilter Glow(
     uint color = 0xFF00FF,
     float alpha = 0.5f,
     float blur = 1.0f,
     float resolution = 0.5f)
 {
     BlurFilter glow = new BlurFilter(blur, resolution);
     glow.Mode = FragmentFilterMode.Below;
     glow.SetUniformColor(true, color, alpha);
     return glow;
 }
        /// <summary>
        /// Creates a glow with a specified color, alpha, blur and resolution.
        /// </summary>
        public static BlurFilter Glow(
            uint color       = 0xFF00FF,
            float alpha      = 0.5f,
            float blur       = 1.0f,
            float resolution = 0.5f)
        {
            BlurFilter glow = new BlurFilter(blur, resolution);

            glow.Mode = FragmentFilterMode.Below;
            glow.SetUniformColor(true, color, alpha);
            return(glow);
        }