| Package | km.filters |
| Class | public final class ZoomFilter |
| Inheritance | ZoomFilter SizeDependentFilter flash.filters.ShaderFilter |
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];
| Property | Defined by | ||
|---|---|---|---|
![]() | objectHeight : Number Gets or sets the object height to be passed to the filter.
| SizeDependentFilter | |
![]() | objectWidth : Number Gets or sets the object width to be passed to the filter.
| SizeDependentFilter | |
| zoom : Number zoom.
| ZoomFilter | ||
| Method | Defined 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 | ||
![]() |
sizeTo(displayObject:DisplayObject):void
Sets the object width and height to be passed to the filter by specifying the object itself.
| SizeDependentFilter | |
| zoom | property |
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
| ZoomFilter | () | constructor |
public function ZoomFilter(zoom:Number = 0.33)Initializes a new ZoomFilter instance with the specified parameter.
Parameterszoom:Number (default = 0.33) |
| clone | () | method |
public override function clone():BitmapFilterReturns a copy of this filter object.
ReturnsBitmapFilter |