Package | spark.filters |
Class | public class ColorMatrixFilter |
Inheritance | ColorMatrixFilter ![]() ![]() |
Implements | IBitmapFilter |
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The <s:ColorMatrixFilter>
tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<s:ColorMatrixFilter Properties matrix="[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]" />
See also
Property | Defined By | ||
---|---|---|---|
matrix : Object
A comma delimited list of 20 doubles that comprise a 4x5 matrix applied to the
rendered element. | ColorMatrixFilter |
Method | Defined By | ||
---|---|---|---|
ColorMatrixFilter(matrix:Array = null)
Constructor. | ColorMatrixFilter | ||
clone():BitmapFilter
Returns a copy of this filter object. | ColorMatrixFilter | ||
![]() | notifyFilterChanged():void
Propagates a change event when the filter has changed. | BaseFilter |
matrix | property |
matrix:Object
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
A comma delimited list of 20 doubles that comprise a 4x5 matrix applied to the rendered element. The matrix is in row major order -- that is, the first five elements are multipled by the vector [srcR,srcG,srcB,srcA,1] to determine the output red value, the second five determine the output green value, etc.
The value must either be an array or comma delimited string of 20 numbers.
The default value is [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]
.
public function get matrix():Object
public function set matrix(value:Object):void
ColorMatrixFilter | () | Constructor |
public function ColorMatrixFilter(matrix:Array = null)
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
Parametersmatrix:Array (default = null ) — An array of 20 items arranged as a 4 x 5 matrix.
|
clone | () | method |
public function clone():BitmapFilter
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns a copy of this filter object.
ReturnsBitmapFilter — A new ColorMatrixFilter instance with all of the same
properties as the original one.
|