| Package | ardisia.components.graphicsEditor |
| Class | public class CanvasBackground |
| Inheritance | CanvasBackground spark.components.Group |
Operates in one of two modes: (1) draws a rectangular fill if the "backgroundColor" is not NaN. (2) Fills a BitmapImage with the supplied "transparentSource" data if the "backgroundColor" is NaN (transparency).
Note, drawing the transparent checkerboard using the flash vector graphics engine is crazy slow. Using a BitmapImage that repeats its fill is much, much faster.
Default MXML PropertymxmlContent
| Property | Defined By | ||
|---|---|---|---|
| backgroundColor : Number
The color to draw. | CanvasBackground | ||
| transparentSource : Object
The source data to represent transparency. | CanvasBackground | ||
| backgroundColor | property |
backgroundColor:NumberThe color to draw. Set to NaN for transparency.
The default value is 0xFFFFFF.
public function get backgroundColor():Number public function set backgroundColor(value:Number):void| transparentSource | property |
transparentSource:ObjectThe source data to represent transparency.
The default value is null.
public function get transparentSource():Object public function set transparentSource(value:Object):void