BitmapTransform provides transformation logic for
BitmapData
transformations.
protected var _hdiv:int
protected var _height:Number
protected var _newVertsArray:Array
public var _smooth:Boolean
protected var _vdiv:int
protected var _vertsArray:Array
protected var _width:Number
public function BitmapTransform(width:Number, height:Number, horizontalDivisions:int = 5, verticalDivisons:int = 5, smooth:Boolean = false)
BitmapTransform Constructor
Parameters
| width:Number — of the BitmapData
|
|
| height:Number — of the BitmapData
|
|
| horizontalDivisions:int (default = 5 ) — number of horizontal (x) sections to divide the BitmapData transformation with.
|
|
| verticalDivisons:int (default = 5 ) — number of vertical (y) sections to divide the BitmapData transformation with.
|
|
| smooth:Boolean (default = false ) — whether to smooth the BitmapData true, or not false .
|
protected function calcNewVerts(a:Point, b:Point, c:Point, d:Point):void
Calculate new vertices for the BitmapData
.
Parameters
| a:Point |
|
| b:Point |
|
| c:Point |
|
| d:Point |
public function mapBitmapData(bd:BitmapData, topLeft:Point, topRight:Point, bottomRight:Point, bottomLeft:Point, container:Sprite):void
Map the BitmapData
transformation.
Parameters
| bd:BitmapData |
|
| topLeft:Point |
|
| topRight:Point |
|
| bottomRight:Point |
|
| bottomLeft:Point |
|
| container:Sprite |
protected function setVertices():void
Set the vertices of BitmapData
.
Copyright © 2008-2012 jason m horwitz, Sekati LLC. All Rights Reserved.