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

@@ -0,0 +1,23 @@
## setImage
Sets a new image
#### Parameter:
1. `table` A table in bimg or nfp format.
1. `string` The format in which the image should be loaded (nfp or bimg)
#### Usage:
* Creates a default image and loads a test.nfp file
```lua
local mainFrame = basalt.createFrame()
local bimg = {
[1] = {
{"Hello", "fffff", "33333"}
}
}
local aImage = mainFrame:addImage():setImage(bimg)
```