EaselJS

EaselJS  0.4.2

EaselJS > EaselJS > BoxBlurFilter
Search:
 
Filters

Class BoxBlurFilter

BoxBlurFilter applies a box blur to DisplayObjects

Constructor

BoxBlurFilter ( blurX , blurY , quality )
Parameters:
blurX <Number>
blurY <Number>
quality <Number>

Properties

blurX - Number

Horizontal blur radius

blurY - Number

Vertical blur radius

quality - Number

Number of blur iterations. For example, a value of 1 will produce a rough blur. A value of 2 will produce a smoother blur, but take twice as long to run.

Methods

applyFilter

void applyFilter ( ctx , x , y , width , height , targetCtx , targetX , targetY )
Applies the filter to the specified context.
Parameters:
ctx <object> The 2D context to use as the source.
x <object> The x position to use for the source rect.
y <object> The y position to use for the source rect.
width <object> The width to use for the source rect.
height <object> The height to use for the source rect.
targetCtx <object> Optional. The 2D context to draw the result to. Defaults to the context passed to ctx.
targetX <object> Optional. The x position to draw the result to. Defaults to the value passed to x.
targetY <object> Optional. The y position to draw the result to. Defaults to the value passed to y.
Returns: void

clone

void clone ( )
Returns a clone of this DisplayObject. Some properties that are specific to this instance's current context are reverted to their defaults (for example .parent).
Returns: void

getBounds

Rectangle getBounds ( )
Returns a rectangle with values indicating the margins required to draw the filter. For example, a filter that will extend the drawing area 4 pixels to the left, and 7 pixels to the right (but no pixels up or down) would return a rectangle with (x=-4, y=0, width=11, height=0).
Returns: Rectangle
a rectangle object indicating the margins required to draw the filter.

toString

void toString ( )
Returns a string representation of this object.
Returns: void