Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
23
docs/docs1_6/objects/Image/loadImage.md
Normal file
23
docs/docs1_6/objects/Image/loadImage.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## loadImage
|
||||
This method is used to load an image file into the image object.
|
||||
|
||||
#### Parameters:
|
||||
|
||||
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" />
|
||||
```
|
||||
Reference in New Issue
Block a user