Package | twaver |
Interface | public interface IImageAsset |
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;
Property | Defined 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 |
Method | Defined 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 |
args | property |
args:Array
[read-only] Get arguments of this image by an array.
public function get args():Array
bitmapData | property |
bitmapData:BitmapData
[read-only] Get the bitmap data information for this image.
public function get bitmapData():BitmapData
bounds | property |
bounds:Rectangle
[read-only] Get the bounds of this image.
public function get bounds():Rectangle
componentClass | property |
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.
public function get componentClass():Class
displayObject | property |
displayObject:DisplayObject
[read-only] Get the display object combined with this image.
public function get displayObject():DisplayObject
height | property |
height:Number
[read-only] Get the image height.
public function get height():Number
smoothing | property |
smoothing:Boolean
[read-only] Boolean value indicates whether turn on smooth scaling for this image.
public function get smoothing():Boolean
width | property |
width:Number
[read-only] Get the image width
public function get width():Number
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
|
BitmapData — the bitmap data information of this image.
|