Packageqnx.fuse.ui.display
Classpublic class Image
InheritanceImage Inheritance UIComponent Inheritance flash.display.MovieClip

The Image class displays an image. It can display an image by using a URL to an image, a Bitmap instance or a BitmapData instance.

See also

qnx.utils.ImageCache


Public Properties
 PropertyDefined By
  bitmapData : BitmapData
Image
  cache : ImageCache
Gets or sets the ImageCache object to use to cache the image.
Image
 InheritedexplicitHeight : Number
[read-only]
UIComponent
 InheritedexplicitWidth : Number
[read-only]
UIComponent
  fixedAspectRatio : Boolean
Image
  hAlign : String
Image
 InheritedincludeInLayout : Boolean
Specifies if the component should be included in it's parent containers layout.
UIComponent
 InheritedlayoutData : Object
Returns the layout data for the object.
UIComponent
 InheritedminHeight : Number
Sets the minimum preferred height of the control.
UIComponent
 InheritedminWidth : Number
Sets the minimum preferred width of the control.
UIComponent
  pixelSnapping : String
Controls whether or not the Bitmap object is snapped to the nearest pixel.
Image
  smoothing : Boolean
Controls whether or not the bitmap is smoothed when scaled.
Image
  vAlign : String
Image
Protected Properties
 PropertyDefined By
 InheriteddisplayListIsInvalid : Boolean = false
UIComponent
 InheritedpropertiesAreInvalid : Boolean = false
UIComponent
 InheritedsizeChange : Boolean
UIComponent
 InheritedstateChanged : Boolean
UIComponent
Public Methods
 MethodDefined By
  
Constructs an Image instance.
Image
 Inherited
childChanged(resizedChild:DisplayObject = null):Boolean
Notifies the UIComponent that one or more of its children has changed in a manner that may affect this object's layout.
UIComponent
 Inherited
destroy():void
Call this method when you want to have your object collected by the garbage collector.
UIComponent
 Inherited
UIComponent
 Inherited
Calling this method results in a call to the components validateDisplayList() method before the display list is rendered.
UIComponent
 Inherited
Calling this method results in a call to the components validateProperties() method before the display list is rendered.
UIComponent
 Inherited
measure(availableWidth:Number, availableHeight:Number):LayoutMeasurement
UIComponent
 Inherited
setActualSize(w:Number, h:Number):void
Sets the width and height of the object without setting the explicitWidth and explicitHeight.
UIComponent
  
setImage(image:Object):void
Sets the image.
Image
 Inherited
setLayoutBounds(bounds:Rectangle):void
Sets the receiver's size and location to the rectangular area specified by the arguments.
UIComponent
 Inherited
setPosition(x:Number, y:Number):void
Sets the x and y position of the component.
UIComponent
 Inherited
Validates the display list of the component by calling the updateDisplayList().
UIComponent
 Inherited
Validates the component immediately by calling validateProperties(), validateSizes(), and validateDisplayList() if necessary.
UIComponent
 Inherited
Validates the properties of the component by calling the commitProperties() method.
UIComponent
Protected Methods
 MethodDefined By
 Inherited
Process properties of the component.
UIComponent
 Inherited
Process the state of the component.
UIComponent
 Inherited
doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurement
UIComponent
 Inherited
flushCache():void
Invoked as part of parentLayoutChanged.
UIComponent
 Inherited
onAdded():void
Called when the instance is added to the stage.
UIComponent
 Inherited
onRemoved():void
Called when the instance is removed from the stage.
UIComponent
 Inherited
Invalidates the parent's size and display list if includeInLayout property is set to true.
UIComponent
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Sets the size and position of the children of the component.
UIComponent
Events
 Event Summary Defined By
  Dispatched when the image is loaded and ready to be used.Image
  Dispatched when the image cannot be loaded.Image
Property Detail
bitmapDataproperty
bitmapData:BitmapData


Implementation
    public function get bitmapData():BitmapData
    public function set bitmapData(value:BitmapData):void
cacheproperty 
cache:ImageCache

Gets or sets the ImageCache object to use to cache the image.


Implementation
    public function get cache():ImageCache
    public function set cache(value:ImageCache):void

See also

fixedAspectRatioproperty 
fixedAspectRatio:Boolean


Implementation
    public function get fixedAspectRatio():Boolean
    public function set fixedAspectRatio(value:Boolean):void
hAlignproperty 
hAlign:String


Implementation
    public function get hAlign():String
    public function set hAlign(value:String):void
pixelSnappingproperty 
pixelSnapping:String

Controls whether or not the Bitmap object is snapped to the nearest pixel. The PixelSnapping class includes possible values:


Implementation
    public function get pixelSnapping():String
    public function set pixelSnapping(value:String):void
smoothingproperty 
smoothing:Boolean

Controls whether or not the bitmap is smoothed when scaled. If true, the bitmap is smoothed when scaled. If false, the bitmap is not smoothed when scaled.


Implementation
    public function get smoothing():Boolean
    public function set smoothing(value:Boolean):void
vAlignproperty 
vAlign:String


Implementation
    public function get vAlign():String
    public function set vAlign(value:String):void
Constructor Detail
Image()Constructor
public function Image()

Constructs an Image instance.

Method Detail
setImage()method
public function setImage(image:Object):void

Sets the image. The image parameter can be of type String as a URL to an external image, Bitmap instance, a BitmapData instance or a URLRequest instance.

Parameters

image:Object — The image to be set.

Event Detail
complete Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.COMPLETE

Dispatched when the image is loaded and ready to be used.

ioError Event  
Event Object Type: flash.events.IOErrorEvent
IOErrorEvent.type property = flash.events.IOErrorEvent.IO_ERROR

Dispatched when the image cannot be loaded.