Packagegraphics.filters
Classpublic class RGBDistortFilter
InheritanceRGBDistortFilter Inheritance ShaderCustomFilter Inheritance flash.filters.ShaderFilter

The RGBDistortFilter class applies a filter by executing a shader on the object being filtered. The Shader must be defines with the RGBDistort pixelbender implementation.



Public Properties
 PropertyDefined By
  blueDirection : Number
Indicates the direction level of the blue component (between -1 and 1).
RGBDistortFilter
  blueFrequency : Number
Indicates the frequency level of the blue component (between 0 and 1).
RGBDistortFilter
  blueIntensity : Number
Indicates the intensity level of the blue component (between 0 and 1).
RGBDistortFilter
 Inheriteddescription : String
[read-only] The description of the filter (defines in the Shader).
ShaderCustomFilter
  greenDirection : Number
Indicates the direction level of the green component (between -1 and 1).
RGBDistortFilter
  greenFrequency : Number
Indicates the frequency level of the green component (between 0 and 1).
RGBDistortFilter
  greenIntensity : Number
Indicates the intensity level of the green component (between 0 and 1).
RGBDistortFilter
 Inheritedname : String
[read-only] The name of the filter (defines in the Shader).
ShaderCustomFilter
 Inheritednamespace : String
[read-only] The namespace of the filter (defines in the Shader).
ShaderCustomFilter
  redDirection : Number
Indicates the direction level of the red component (between -1 and 1).
RGBDistortFilter
  redFrequency : Number
Indicates the frequency level of the red component (between 0 and 1).
RGBDistortFilter
  redIntensity : Number
Indicates the intensity level of the red component (between 0 and 1).
RGBDistortFilter
 Inheritedversion : String
[read-only] The version of the filter (defines in the Shader).
ShaderCustomFilter
Public Methods
 MethodDefined By
  
RGBDistortFilter(shader:Shader = null, init:Object = null)
Creates a new RGBDistorFilter instance.
RGBDistortFilter
  
clone():BitmapFilter
[override] Returns a shallow copy of the object.
RGBDistortFilter
Property Detail
blueDirectionproperty
blueDirection:Number

Indicates the direction level of the blue component (between -1 and 1).


Implementation
    public function get blueDirection():Number
    public function set blueDirection(value:Number):void
blueFrequencyproperty 
blueFrequency:Number

Indicates the frequency level of the blue component (between 0 and 1).


Implementation
    public function get blueFrequency():Number
    public function set blueFrequency(value:Number):void
blueIntensityproperty 
blueIntensity:Number

Indicates the intensity level of the blue component (between 0 and 1).


Implementation
    public function get blueIntensity():Number
    public function set blueIntensity(value:Number):void
greenDirectionproperty 
greenDirection:Number

Indicates the direction level of the green component (between -1 and 1).


Implementation
    public function get greenDirection():Number
    public function set greenDirection(value:Number):void
greenFrequencyproperty 
greenFrequency:Number

Indicates the frequency level of the green component (between 0 and 1).


Implementation
    public function get greenFrequency():Number
    public function set greenFrequency(value:Number):void
greenIntensityproperty 
greenIntensity:Number

Indicates the intensity level of the green component (between 0 and 1).


Implementation
    public function get greenIntensity():Number
    public function set greenIntensity(value:Number):void
redDirectionproperty 
redDirection:Number

Indicates the direction level of the red component (between -1 and 1).


Implementation
    public function get redDirection():Number
    public function set redDirection(value:Number):void
redFrequencyproperty 
redFrequency:Number

Indicates the frequency level of the red component (between 0 and 1).


Implementation
    public function get redFrequency():Number
    public function set redFrequency(value:Number):void
redIntensityproperty 
redIntensity:Number

Indicates the intensity level of the red component (between 0 and 1).


Implementation
    public function get redIntensity():Number
    public function set redIntensity(value:Number):void
Constructor Detail
RGBDistortFilter()Constructor
public function RGBDistortFilter(shader:Shader = null, init:Object = null)

Creates a new RGBDistorFilter instance.

Parameters
shader:Shader (default = null) — The Shader reference with the RGBDistort pixel bender filter inside.
 
init:Object (default = null) — The optional dynamic object to initialize the filter.
Method Detail
clone()method
override public function clone():BitmapFilter

Returns a shallow copy of the object.

Returns
BitmapFilter — a shallow copy of the object.