Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
Atsuya Sato edited this page Nov 30, 2018 · 3 revisions

Image


image(_ img: UIImage, _ x: CGFloat, _ y: CGFloat)

image(_ img: UIImage, _ x: CGFloat, _ y: CGFloat, _ width: CGFloat, _ height: CGFloat)

Available

iOS

Examples

image(UIImage(named: "logo"), 0, 0, 100, 100)

Description

The image() function draws an image to the display window.


drawImage(_ img: NSImage, _ x: CGFloat, _ y: CGFloat)

drawImage(_ img: NSImage, _ x: CGFloat, _ y: CGFloat, _ width: CGFloat, _ height: CGFloat)

Available

OSX

Examples

drawImage(NSImage(named: "logo"), 0, 0, 100, 100)

Description

The drawImage() function draws an image to the display window.