| Package | de.popforge.imageprocessing.filters.distortion |
| Class | public class DisplacementMap |
| Inheritance | DisplacementMap NativeFilter |
| Subclasses | QuickBumpMap |
Supported formats:
See also
| Method | Defined by | ||
|---|---|---|---|
|
DisplacementMap(mapBitmap:BitmapData = null, mapPoint:Point = null, componentX:uint = 0, componentY:uint = 0, scaleX:Number = 0.0, scaleY:Number = 0, mode:String = "wrap", color:uint = 0, alpha:Number = 0)
Creates a new DisplacementMap object.
| DisplacementMap | ||
![]() |
Applies the filter to the given Image object.
| NativeFilter | |
|
toString():String
Builds and returns a string containing the name of the class.
| DisplacementMap | ||
| DisplacementMap | () | constructor |
public function DisplacementMap(mapBitmap:BitmapData = null, mapPoint:Point = null, componentX:uint = 0, componentY:uint = 0, scaleX:Number = 0.0, scaleY:Number = 0, mode:String = "wrap", color:uint = 0, alpha:Number = 0)Creates a new DisplacementMap object.
ParametersmapBitmap:BitmapData (default = null) — A BitmapData object containing the displacement map data.
|
|
mapPoint:Point (default = null) — A value that contains the offset of the upper-left corner of the target display object from the upper-left corner of the map image.
|
|
componentX:uint (default = 0) — Describes which color channel to use in the map image to displace the x result. Possible values are the BitmapDataChannel constants.
|
|
componentY:uint (default = 0) — Describes which color channel to use in the map image to displace the y result. Possible values are the BitmapDataChannel constants.
|
|
scaleX:Number (default = 0.0) — The multiplier to use to scale the x displacement result from the map calculation.
|
|
scaleY:Number (default = 0) — The multiplier to use to scale the y displacement result from the map calculation.
|
|
mode:String (default = "wrap") — The mode of the filter. Possible values are the DisplacementMapFilterMode constants.
|
|
color:uint (default = 0) — Specifies the color to use for out-of-bounds displacements. The valid range of displacements is 0.0 to 1.0. Use this parameter if mode is set to DisplacementMapFilterMode.COLOR.
|
|
alpha:Number (default = 0) — Specifies what alpha value to use for out-of-bounds displacements. It is specified as a normalized value from 0.0 to 1.0. For example, .25 sets a transparency value of 25%. The default is 1.0. Use this parameter if mode is set to DisplacementMapFilterMode.COLOR.
|
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|