Class Elevation returns a multidimentional array of Vector3D's to pass to the SkinClass in order to generate an elevated mesh from.
Elevation
maxElevation:Number
[read-write]Implementation
public function get maxElevation():Number
public function set maxElevation(value:Number):void
minElevation:Number
[read-write]Implementation
public function get minElevation():Number
public function set minElevation(value:Number):void
public function Elevation()
Init Parameters
public function generate(sourceBmd:BitmapData, channel:String = "r", subdivisionX:int = 10, subdivisionY:int = 10, scalingX:Number = 1, scalingY:Number = 1, elevate:Number = .5):Array
Generate the Array representing the mesh
Parameters
| sourceBmd:BitmapData — Bitmapdata. The bitmapData to read from.
|
|
| channel:String (default = "r ") — [optional] String. The channel information to read. supported "a", alpha, "r", red, "g", green, "b", blue and "av" (averages and luminance). Default is red channel "r".
|
|
| subdivisionX:int (default = 10 ) — [optional] int. The subdivision to read the pixels along the x axis. Default is 10.
|
|
| subdivisionY:int (default = 10 ) — [optional] int. The subdivision to read the pixels along the y axis. Default is 10.
|
|
| scalingX:Number (default = 1 ) — [optional] Number. The scale multiplier along the x axis. Default is 1.
|
|
| scalingY:Number (default = 1 ) — [optional] Number. The scale multiplier along the y axis. Default is 1.
|
|
| elevate:Number (default = .5 ) — [optional] Number. The scale multiplier along the z axis. Default is .5.
|
Returns