Packagekm.filters
Classpublic final class HalftoneFilter
InheritanceHalftoneFilter Inheritance flash.filters.ShaderFilter

The HalftoneFilter class [FlashPlayer 10].
This filter can be used to halftone a display object.


Example
import km.filters.*;

var shape:Shape = new Shape();
shape.graphics.beginFill(0xc00000);
shape.graphics.drawRect(0, 0, 40, 40);
addChild(shape);

var filter:HalftoneFilter = new HalftoneFilter();
filter.setDitherMatrix(2, 2, [0, 2, 3, 1]);
shape.filters = [filter];



Public Properties
 PropertyDefined by
  pattern : BitmapData
[write-only] Pattern.
HalftoneFilter
Public Methods
 MethodDefined by
  
HalftoneFilter(pattern:* = null)
Initializes a new HalftoneFilter instance with the specified parameter.
HalftoneFilter
  
clone():BitmapFilter
Returns a copy of this filter object.
HalftoneFilter
  
setDitherMatrix(matrixX:uint, matrixY:uint, matrix:Array):void
Sets a dither matrix.
HalftoneFilter
Property detail
patternproperty
pattern:BitmapData  [write-only]

Pattern. A pattern image used for halftoning (only the blue channel is used).

Implementation
    public function set pattern(value:BitmapData):void
Constructor detail
HalftoneFilter()constructor
public function HalftoneFilter(pattern:* = null)

Initializes a new HalftoneFilter instance with the specified parameter.

Parameters
pattern:* (default = null)
Method detail
clone()method
public override function clone():BitmapFilter

Returns a copy of this filter object.

Returns
BitmapFilter
setDitherMatrix()method 
public function setDitherMatrix(matrixX:uint, matrixY:uint, matrix:Array):void

Sets a dither matrix.

Parameters
matrixX:uint
 
matrixY:uint
 
matrix:Array