Updated image docs

This commit is contained in:
Robert Jelic
2022-12-24 11:48:35 +01:00
parent 91e42e096c
commit 6d2956f3bf
9 changed files with 117 additions and 9 deletions

View File

@@ -1,18 +1,23 @@
## loadImage
loads a default .nfp file into the object.
This method is used to load an image file into the image object.
#### Parameters:
1. `string` the absolute file path
1. `path` the absolute file path
#### Returns:
1. `object` The object in use
#### Usage:
* Creates a default image and loads a test.nfp file
```lua
local mainFrame = basalt.createFrame()
local aImage = mainFrame:addImage():loadImage("test.nfp")
```
```xml
<image path="test.nfp" />
```
```