develop wherever and whenever you want...
Docs > Image Class Reference

Image Class Reference

Summary 
Construct an image object used in ImageView objects

ImageObject Image(path)

Example 
root = new View("ipad-portrait"); 
image = new Image("jasic.png"); 
iv = root.createImageView(400,400); 
iv.setImage(image); 
document.wait(); 


Image 
Construct a new image object given a file path

ImageObject Image(path)

Parameters 
path - path to image object

Return Value 
Image object

Notes 
It is recommended that you keep all images used by your application in the same folder as the application and reference the image file without any path information. Image objects support all formats supported by iOS.