Stage::addBackdrop()
Adds a backdrop. The first one added is shown.
Examples
Syntax
Java
.addBackdrop(name, imagePath)
.addBackdrop(imagePath)
.addBackdrop(name, imagePath, stretch)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the backdrop's name |
| imagePath | String | the image file |
| stretch | boolean | whether to stretch it to the stage's size |
Return
void