Global Function

image()

Declaration

func image(image: TImage, x: Double, y: Double)
func image(image: TImage, x: Double, y: Double, width: Double, height: Double)

Parameters

image A TImage object that represents an image, to be rendered in the view.
x x-coordinate of the position of the image. (lower,left corner)
y y-coordinate of the position of the image. (lower,left corner)
width The image will be resized to this width
height The image will be resized to this width

Returns

-

Description

Render an image in the view.

Examples

let birdImage: TImage! = TImage(contentsOfFileInBundle: "puffin.jpg")
image(image: birdImage, x: 200, y: 100)

Related

TImage