Packagegraphics.filters
Classpublic class HalftoneFilter
InheritanceHalftoneFilter Inheritance ShaderCustomFilter Inheritance flash.filters.ShaderFilter

The HalftoneFilter class applies a halftone filter over a picture. The Shader must be defines with the Halftone pixelbender implementation.



Public Properties
 PropertyDefined By
  angle : Number
The angle value of the halftone filter between 0 and 180 degrees (default 0).
HalftoneFilter
 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
  pitch : Number
The pitch value of the halftone filter between 0 and 200 pixels (default 5).
HalftoneFilter
  useColor : Boolean
Indicates if the filter apply a black or white or color effect (default false).
HalftoneFilter
 Inheritedversion : String
[read-only] The version of the filter (defines in the Shader).
ShaderCustomFilter
Public Methods
 MethodDefined By
  
HalftoneFilter(init:Object = null, shader:Shader = null)
Creates a new HalftoneFilter instance.
HalftoneFilter
  
clone():BitmapFilter
[override] Returns a shallow copy of the object.
HalftoneFilter
Property Detail
angleproperty
angle:Number

The angle value of the halftone filter between 0 and 180 degrees (default 0).


Implementation
    public function get angle():Number
    public function set angle(value:Number):void
pitchproperty 
pitch:Number

The pitch value of the halftone filter between 0 and 200 pixels (default 5).


Implementation
    public function get pitch():Number
    public function set pitch(value:Number):void
useColorproperty 
useColor:Boolean

Indicates if the filter apply a black or white or color effect (default false).


Implementation
    public function get useColor():Boolean
    public function set useColor(value:Boolean):void
Constructor Detail
HalftoneFilter()Constructor
public function HalftoneFilter(init:Object = null, shader:Shader = null)

Creates a new HalftoneFilter instance.

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

Returns a shallow copy of the object.

Returns
BitmapFilter — a shallow copy of the object.