Packagegraphics.filters
Classpublic class MagnifyFilter
InheritanceMagnifyFilter Inheritance ShaderCustomFilter Inheritance flash.filters.ShaderFilter

The MagnifyFilter class applies a magnification transformation over a display or a bitmap. The Shader must be defines with the Magnify pixelbender implementation.



Public Properties
 PropertyDefined By
  center : Point
The center position of the magnification (between {0,0} and {2048,2048}, default {0,0}).
MagnifyFilter
 Inheriteddescription : String
[read-only] The description of the filter (defines in the Shader).
ShaderCustomFilter
  innerRadius : Number
The inner radius of the effect (between 0 and 500 px, default 50 px).
MagnifyFilter
  magnification : Number
The amount of the magnification (between 1 and 50, default 5).
MagnifyFilter
 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
  outerRadius : Number
The outer radius of the effect (between 0 and 500 px, default 80 px).
MagnifyFilter
 Inheritedversion : String
[read-only] The version of the filter (defines in the Shader).
ShaderCustomFilter
Public Methods
 MethodDefined By
  
MagnifyFilter(shader:Shader = null, init:Object = null)
Creates a new MagnifyFilter instance.
MagnifyFilter
  
clone():BitmapFilter
[override] Returns a shallow copy of the object.
MagnifyFilter
Property Detail
centerproperty
center:Point

The center position of the magnification (between {0,0} and {2048,2048}, default {0,0}).


Implementation
    public function get center():Point
    public function set center(value:Point):void
innerRadiusproperty 
innerRadius:Number

The inner radius of the effect (between 0 and 500 px, default 50 px).


Implementation
    public function get innerRadius():Number
    public function set innerRadius(value:Number):void
magnificationproperty 
magnification:Number

The amount of the magnification (between 1 and 50, default 5).


Implementation
    public function get magnification():Number
    public function set magnification(value:Number):void
outerRadiusproperty 
outerRadius:Number

The outer radius of the effect (between 0 and 500 px, default 80 px).


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

Creates a new MagnifyFilter instance.

Parameters
shader:Shader (default = null) — The Shader reference with the Magnify 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.