Packagekm.filters
Classpublic final class ZoomFilter
InheritanceZoomFilter Inheritance SizeDependentFilter Inheritance flash.filters.ShaderFilter

The ZoomFilter class [FlashPlayer 10].
This filter can be used to apply a tiled zoom to a display object.


Example
import km.filters.*;

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

var filter:ZoomFilter = new ZoomFilter();
filter.sizeTo(shape);
shape.filters = [filter];



Public Properties
 PropertyDefined by
 InheritedobjectHeight : Number
Gets or sets the object height to be passed to the filter.
SizeDependentFilter
 InheritedobjectWidth : Number
Gets or sets the object width to be passed to the filter.
SizeDependentFilter
  zoom : Number
zoom.
ZoomFilter
Public Methods
 MethodDefined by
  
ZoomFilter(zoom:Number = 0.33)
Initializes a new ZoomFilter instance with the specified parameter.
ZoomFilter
  
clone():BitmapFilter
Returns a copy of this filter object.
ZoomFilter
 Inherited
sizeTo(displayObject:DisplayObject):void
Sets the object width and height to be passed to the filter by specifying the object itself.
SizeDependentFilter
Property detail
zoomproperty
zoom:Number  [read-write]

zoom. Valid values are from .01 to 100 (floating point). The default value is 0.33.

Implementation
    public function get zoom():Number
    public function set zoom(value:Number):void
Constructor detail
ZoomFilter()constructor
public function ZoomFilter(zoom:Number = 0.33)

Initializes a new ZoomFilter instance with the specified parameter.

Parameters
zoom:Number (default = 0.33)
Method detail
clone()method
public override function clone():BitmapFilter

Returns a copy of this filter object.

Returns
BitmapFilter