Skip to content

UI.View.backgroundImage

kerrishotts edited this page Apr 4, 2013 · 2 revisions

(part of UI.View)

Type: image

Default: null

The background image of the view. If changed, it sends a backgroundImageDidChange notification.

Note: a background image will override a background color.

Note: changing the internal properties should be avoided, as it does not utilize the setter method for the property. Therefore notifications will fail to fire and properties that rely on it will fail to be updated. When changing this property, you should always assign a new copy of the object that contains the desired modifications.

Usage

var aView = new UI.View();
aView.backgroundImage = UI.makeImage ( "./images/somePattern.png", UI.makeSize(32,32),
                                       { repeat: "repeat" } );

Version

0.3 Introduced; Docs Valid.

Clone this wiki locally