addBackdrop

fun addBackdrop(name: String, dataFormat: String, assetId: String, rotationCenter: Pair<Double, Double>? = null, bitmapResolution: Int = 1, path: Path? = null): Backdrop

Adds a backdrop to the stage.

Parameters

name

The name of the backdrop.

dataFormat

The format of the asset.

assetId

The MD5 hash of the asset file.

rotationCenter

The center of rotation.

bitmapResolution

The resolution for bitmap images.

path

The local path to the asset file.


fun addBackdrop(path: Path, name: String): Backdrop

Adds a backdrop from a local file.

Parameters

path

The path to the backdrop file.

name

The name for the backdrop.