Packagecom.flashdynamix.motion.effects
Classpublic class BulgeEffect
InheritanceBulgeEffect Inheritance DisplacementEffect Inheritance FilterEffect Inheritance flash.utils.Proxy
ImplementsIEffect

Applies a bulge effect of either a dent or indent to a BitmapData.



Public Properties
 PropertyDefined by
  blur : Number = 40
How much blur is applied to the bulge effect.
BulgeEffect
  bmd : BitmapData
The BitmapData to be applied a bulge effect.
BulgeEffect
  dent : Boolean
Sets and returns whether the bulge effect is a dent or an indent.
BulgeEffect
 Inheritedfilter : BitmapFilter
The BitmapFilter to apply onto the BitmapData.
FilterEffect
 InheritedmapBmd : BitmapData
The displacement BitmapData to be used.
DisplacementEffect
 InheritedmapPoint : Point
The position of the displacement mapBmd.
DisplacementEffect
 Inheritedpt : Point
The Point from which to apply the BitmapFilter
FilterEffect
  x : Number = 0
The bulge's x position in pixels.
BulgeEffect
  y : Number = 0
The bulge's y position in pixels.
BulgeEffect
Public Methods
 MethodDefined by
  
BulgeEffect(bmd:BitmapData, dent:Boolean = true, scaleX:Number = 20, scaleY:Number = 20)
BulgeEffect
  
render(bmd:BitmapData):void
Renders the BulgeEffect to the specified BitmapData.
BulgeEffect
Protected Methods
 MethodDefined by
 Inherited
getProperty(name:*):*
FilterEffect
 Inherited
setProperty(name:*, value:*):void
FilterEffect
Property detail
blurproperty
public var blur:Number = 40

How much blur is applied to the bulge effect.

bmdproperty 
public var bmd:BitmapData

The BitmapData to be applied a bulge effect.

dentproperty 
dent:Boolean  [read-write]

Sets and returns whether the bulge effect is a dent or an indent.

Implementation
    public function get dent():Boolean
    public function set dent(value:Boolean):void
xproperty 
public var x:Number = 0

The bulge's x position in pixels.

yproperty 
public var y:Number = 0

The bulge's y position in pixels.

Constructor detail
BulgeEffect()constructor
public function BulgeEffect(bmd:BitmapData, dent:Boolean = true, scaleX:Number = 20, scaleY:Number = 20)

Parameters
bmd:BitmapData — The BitmapData to which the bulge effect is applied.
 
dent:Boolean (default = true) — The amount of scaleX to be applied onto the bulge effect.
 
scaleX:Number (default = 20) — The amount of scaleY to be applied onto the bulge effect.
 
scaleY:Number (default = 20)
Method detail
render()method
public override function render(bmd:BitmapData):void

Renders the BulgeEffect to the specified BitmapData.

Parameters
bmd:BitmapData