Packagegraphics.display
Classpublic class ReflectionBitmapData
InheritanceReflectionBitmapData Inheritance flash.display.BitmapData

The ReflectionBitmapData class.

Example :

     import graphics.display.ReflectionBitmapData ;
     
     import flash.display.Bitmap       ;
     import flash.display.BitmapData   ;
     
     // MyBitmapData is a linked symbol in the swf. 
     
     var reflect:BitmapData = new ReflectionBitmapData( new MyBitmapData(0,0) , 0.3) ;
     
     var bitmap:Bitmap = new Bitmap( reflect ) ;
     
     bitmap.x = 25 ;
     bitmap.y = 25 ;
     
     addChild( bitmap ) ;
     



Public Methods
 MethodDefined By
  
ReflectionBitmapData(bitmap:IBitmapDrawable, alpha:Number = 0.5, ratio:Number = 0xFF, size:Number, space:Number = 0)
Creates a new ReflectionBitmapData instance of the passed-in BitmapData and add in the view a transparent reflection effect.
ReflectionBitmapData
Constructor Detail
ReflectionBitmapData()Constructor
public function ReflectionBitmapData(bitmap:IBitmapDrawable, alpha:Number = 0.5, ratio:Number = 0xFF, size:Number, space:Number = 0)

Creates a new ReflectionBitmapData instance of the passed-in BitmapData and add in the view a transparent reflection effect.

Parameters
bitmap:IBitmapDrawable — The IBitmapDrawable object to transform (DisplayObject or BitmapData).
 
alpha:Number (default = 0.5) — A value between 0 and 1 to defines the alpha ratio of the reflection effect (default 0.5).
 
ratio:Number (default = 0xFF) — The ratio of the alpha gradient between 0 and 255 (default 255).
 
size:Number (default = NaN) — The size of the reflection, if this value is NaN the height of the passed-in bitmapdata is used.
 
space:Number (default = 0) — The space between the bitmapData and this reflection (default 0).