Packagetwaver
Interfacepublic interface IImageAsset

This class wraps a bitmap image resource which will be used in TWaver Flex. In TWaver Flex, all image resources used should be registered and cached before use it. In elements, the image property is just a string value like "/demo/images/test.png". To get the real image data information, use following code:
	 var imageAsset:IImageAsset = Utils.getImageAsset(node.image);
	 //now you can visit the width/height information of this image.
	 centerNode.width = imageAsset.width;
	 centerNode.height = imageAsset.height;
	 



Public Properties
 PropertyDefined By
  args : Array
[read-only] Get arguments of this image by an array.
IImageAsset
  bitmapData : BitmapData
[read-only] Get the bitmap data information for this image.
IImageAsset
  bounds : Rectangle
[read-only] Get the bounds of this image.
IImageAsset
  componentClass : Class
[read-only] Get the component class of this image which is used as a carrier of this image to display image in Flex.
IImageAsset
  displayObject : DisplayObject
[read-only] Get the display object combined with this image.
IImageAsset
  height : Number
[read-only] Get the image height.
IImageAsset
  smoothing : Boolean
[read-only] Boolean value indicates whether turn on smooth scaling for this image.
IImageAsset
  width : Number
[read-only] Get the image width
IImageAsset
Public Methods
 MethodDefined By
  
getBitmapData(color:Object = null, xScale:Number = 1, yScale:Number = 1):BitmapData
Get the BitmapData object by specified rending color, scale for this image.
IImageAsset
Property Detail
argsproperty
args:Array  [read-only]

Get arguments of this image by an array.


Implementation
    public function get args():Array
bitmapDataproperty 
bitmapData:BitmapData  [read-only]

Get the bitmap data information for this image.


Implementation
    public function get bitmapData():BitmapData
boundsproperty 
bounds:Rectangle  [read-only]

Get the bounds of this image.


Implementation
    public function get bounds():Rectangle
componentClassproperty 
componentClass:Class  [read-only]

Get the component class of this image which is used as a carrier of this image to display image in Flex.


Implementation
    public function get componentClass():Class
displayObjectproperty 
displayObject:DisplayObject  [read-only]

Get the display object combined with this image.


Implementation
    public function get displayObject():DisplayObject
heightproperty 
height:Number  [read-only]

Get the image height.


Implementation
    public function get height():Number
smoothingproperty 
smoothing:Boolean  [read-only]

Boolean value indicates whether turn on smooth scaling for this image.


Implementation
    public function get smoothing():Boolean
widthproperty 
width:Number  [read-only]

Get the image width


Implementation
    public function get width():Number
Method Detail
getBitmapData()method
public function getBitmapData(color:Object = null, xScale:Number = 1, yScale:Number = 1):BitmapData

Get the BitmapData object by specified rending color, scale for this image. The rending color is used to render this bitmap image by this color. For example, a node with alarm will display the image by the alarm severity color rendered one.

Parameters

color:Object (default = null) — the rending color.
 
xScale:Number (default = 1) — scale on width
 
yScale:Number (default = 1) — scale on height

Returns
BitmapData — the bitmap data information of this image.