Skip to content
kerrishotts edited this page Apr 4, 2013 · 1 revision

(part of UI)

Returns: image object

Parameters: anImage

Returns a copy of anImage, suitable for modification.

Note: You should always copy an image before modifying it, otherwise you risk modifying the original.

Usage

var anImage = UI.makeImage ( "./images/something.png", UI.makeSize (32, 32) );
var bImage = UI.copyImage(anImage);
bImage.imageSize = UI.makeSize (24,24);
// anImage will be 32x32; bImage will be 24x24

Version

0.3 Introduced; Docs Valid

Clone this wiki locally