image

fun image(path: String, x1: Double, y1: Double, x2: Double, y2: Double)(source)

Adds a background image drawn into the world rectangle from top-left (x1, y1) to bottom-right (x2, y2). path is resolved relative to the layout file's directory (absolute paths are used as-is).