Class createjs.Filter
Extends
.
Defined in: filter.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.Filter(type)
A base class for all filters.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
createjs.Filter.Type
Known filters.
|
Method Attributes | Method Name and Description |
---|---|
applyFilter(context, x, y, width, height)
Applies this filter to the specified context.
|
|
Returns a rectangle required to draw this filter or null.
|
|
getType()
Returns the type of this filter.
|
Class Detail
createjs.Filter(type)
A base class for all filters. (This library uses a shader program to apply
filters and this class is just for emulating CreateJS.)
- Parameters:
- {number} type
Field Detail
<static>
createjs.Filter.Type
Known filters.
Method Detail
{boolean}
applyFilter(context, x, y, width, height)
Applies this filter to the specified context. (This library does not use this
method.)
- Parameters:
- {CanvasRenderingContext2D} context
- {number} x
- {number} y
- {number} width
- height
- Returns:
- {boolean}
{createjs.Rectangle}
getBounds()
Returns a rectangle required to draw this filter or null. (This library does
not use this method.)
- Returns:
- {createjs.Rectangle}
{number}
getType()
Returns the type of this filter.
- Returns:
- {number}