Packagesekati.utils
Classpublic class BitmapTransform

BitmapTransform provides transformation logic for BitmapData transformations.

See also

sekati.ui.RotationPlane


Public Properties
 PropertyDefined by
  _smooth : Boolean
BitmapTransform
Protected Properties
 PropertyDefined by
  _hdiv : int
BitmapTransform
  _height : Number
BitmapTransform
  _newVertsArray : Array
BitmapTransform
  _vdiv : int
BitmapTransform
  _vertsArray : Array
BitmapTransform
  _width : Number
BitmapTransform
Public Methods
 MethodDefined by
  
BitmapTransform(width:Number, height:Number, horizontalDivisions:int = 5, verticalDivisons:int = 5, smooth:Boolean = false)
BitmapTransform Constructor
BitmapTransform
  
mapBitmapData(bd:BitmapData, topLeft:Point, topRight:Point, bottomRight:Point, bottomLeft:Point, container:Sprite):void
Map the BitmapData transformation.
BitmapTransform
Protected Methods
 MethodDefined by
  
calcNewVerts(a:Point, b:Point, c:Point, d:Point):void
Calculate new vertices for the BitmapData.
BitmapTransform
  
setVertices():void
Set the vertices of BitmapData.
BitmapTransform
Property detail
_hdivproperty
protected var _hdiv:int
_heightproperty 
protected var _height:Number
_newVertsArrayproperty 
protected var _newVertsArray:Array
_smoothproperty 
public var _smooth:Boolean
_vdivproperty 
protected var _vdiv:int
_vertsArrayproperty 
protected var _vertsArray:Array
_widthproperty 
protected var _width:Number
Constructor detail
BitmapTransform()constructor
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.
Method detail
calcNewVerts()method
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
mapBitmapData()method 
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
setVertices()method 
protected function setVertices():void

Set the vertices of BitmapData.