Packageardisia.components.graphicsEditor
Classpublic class CanvasBackground
InheritanceCanvasBackground Inheritance spark.components.Group

Handles the background for the canvas.

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



Public Properties
 PropertyDefined By
  backgroundColor : Number
The color to draw.
CanvasBackground
  transparentSource : Object
The source data to represent transparency.
CanvasBackground
Property Detail
backgroundColorproperty
backgroundColor:Number

The color to draw. Set to NaN for transparency.

The default value is 0xFFFFFF.


Implementation
    public function get backgroundColor():Number
    public function set backgroundColor(value:Number):void
transparentSourceproperty 
transparentSource:Object

The source data to represent transparency.

The default value is null.


Implementation
    public function get transparentSource():Object
    public function set transparentSource(value:Object):void