Packagegraphics.filters
Classpublic class MosaicFilter
InheritanceMosaicFilter Inheritance ShaderCustomFilter Inheritance flash.filters.ShaderFilter

The MosaicFilter class applies a mosaic transformation over a display or a bitmap. The Shader must be defines with the Mosaic pixelbender implementation.



Public Properties
 PropertyDefined By
 Inheriteddescription : String
[read-only] The description of the filter (defines in the Shader).
ShaderCustomFilter
 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
  size : Number
The size of the mosaic squared pixels (between 1 and 1000 px, default 20 px).
MosaicFilter
 Inheritedversion : String
[read-only] The version of the filter (defines in the Shader).
ShaderCustomFilter
Public Methods
 MethodDefined By
  
MosaicFilter(init:Object = null, shader:Shader = null)
Creates a new MosaicFilter instance.
MosaicFilter
  
clone():BitmapFilter
[override] Returns a shallow copy of the object.
MosaicFilter
Property Detail
sizeproperty
size:Number

The size of the mosaic squared pixels (between 1 and 1000 px, default 20 px).


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

Creates a new MosaicFilter instance.

Parameters
init:Object (default = null) — The Shader reference with the Mosaic pixel bender filter inside.
 
shader:Shader (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.