Package | com.joebillman.fx |
Class | public class ReflectionBitmap |
Inheritance | ReflectionBitmap ![]() |
Property | Defined By | ||
---|---|---|---|
filters : Array [override] [write-only]
Sets the filters array reflection
| ReflectionBitmap | ||
maskHeight : Number [write-only]
Sets the height of the mask
| ReflectionBitmap | ||
maskPaddingX : Number [write-only]
Sets the horizontal padding of the mask. | ReflectionBitmap | ||
maskPaddingY : Number [write-only]
Sets the vertical padding of the mask
| ReflectionBitmap | ||
spread : Array [write-only]
Sets the spread array for the mask gradient
| ReflectionBitmap | ||
transparency : Array [write-only]
Sets the transparency array for the mask gradient
| ReflectionBitmap |
Method | Defined By | ||
---|---|---|---|
ReflectionBitmap(target:BitmapData, targetW:Number, targetH:Number) | ReflectionBitmap | ||
cleanUp():void
Removes the mask and bitmap and marks them for deletion via the garbage collector
| ReflectionBitmap | ||
drawReflection():void
Calls the two functions that build the reflection
| ReflectionBitmap |
filters | property |
filters:Array
[write-only] [override] Sets the filters array reflection
The default value is []
.
public function set filters(value:Array):void
maskHeight | property |
maskHeight:Number
[write-only] Sets the height of the mask
The default value is target.height/2
.
public function set maskHeight(value:Number):void
maskPaddingX | property |
maskPaddingX:Number
[write-only] Sets the horizontal padding of the mask. Most useful for text
The default value is 0
.
public function set maskPaddingX(value:Number):void
maskPaddingY | property |
maskPaddingY:Number
[write-only] Sets the vertical padding of the mask
The default value is 0
.
public function set maskPaddingY(value:Number):void
spread | property |
spread:Array
[write-only] Sets the spread array for the mask gradient
The default value is [0, 127, 255]
.
public function set spread(value:Array):void
transparency | property |
transparency:Array
[write-only] Sets the transparency array for the mask gradient
The default value is [.75, .55, 0]
.
public function set transparency(value:Array):void
ReflectionBitmap | () | Constructor |
public function ReflectionBitmap(target:BitmapData, targetW:Number, targetH:Number)
Parameters
target:BitmapData — Display object of which to make a reflection
| |
targetW:Number | |
targetH:Number |
cleanUp | () | method |
public function cleanUp():void
Removes the mask and bitmap and marks them for deletion via the garbage collector
drawReflection | () | method |
public function drawReflection():void
Calls the two functions that build the reflection