Image

API ReferenceRendererImage

Image {
    source: 'http://lorempixel.com/200/140/'
    onLoad: function(error){
        if (error){
            console.error("Can't load this image");
        } else {
            console.log("Image has been loaded");
        }
    }
}

Source


Image.New()

Static method of
Image
Parameters
  • component — Componentoptional
  • options — Objectoptional
Returns
Image

Source


constructor()

Extends
Item
Returns
Image

Source


Image.pixelRatio

Static property of
Image
Type
Float
Default
1

Image.onPixelRatioChange()

Static property of
Image
Parameters
  • oldValue — Float
Type
Signal

Source


width

Type
Float
Default
-1

Source


height

Type
Float
Default
-1

Source


source

Type
String

The image source URL or data URI.


onSourceChange()

Parameters
  • oldValue — String
Type
Signal

Source


resolution

Type
Float
Default
1
Read Only

Source


sourceWidth

Type
Float
Default
0
Read Only

onSourceWidthChange()

Parameters
  • oldValue — Float
Type
Signal

Source


sourceHeight

Type
Float
Default
0
Read Only

onSourceHeightChange()

Parameters
  • oldValue — Float
Type
Signal

Source


loaded

Type
Boolean
Default
false
Read Only

Source


onLoadedChange()

Parameters
  • oldValue — Boolean
Type
Signal

Source


onLoad()

Type
Signal

Source


onError()

Parameters
  • error — Error
Type
Signal

Source

results matching ""

    No results matching ""