bad syntax fix
This commit is contained in:
@@ -7,30 +7,30 @@ Remember Image inherits from [Object](objects/Object.md)
|
||||
|
||||
## loadImage
|
||||
loads a image into the memory.
|
||||
````lua
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
||||
local aImage = mainFrame:addImage("myFirstImage"):loadImage("randomImage.nfp"):show()
|
||||
````
|
||||
```
|
||||
**Arguments:** string path<br>
|
||||
**returns:** self<br>
|
||||
|
||||
|
||||
## loadBlittleImage -- not finished yet
|
||||
loads a blittle image into the memory.
|
||||
````lua
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
||||
local aImage = mainFrame:addImage("myFirstImage"):loadBlittleImage("blittleImage.blt"):show()
|
||||
````
|
||||
```
|
||||
**Arguments:** string path<br>
|
||||
**returns:** self<br>
|
||||
|
||||
## shrink
|
||||
If you were loading a normal (paint) image into the memory, this function would shrink it to a
|
||||
blittle image and immediatly draws it (if it's visible)
|
||||
````lua
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
||||
local aImage = mainFrame:addImage("myFirstImage"):loadBlittleImage("randomImage.nfp"):shrink():show()
|
||||
````
|
||||
```
|
||||
**Arguments:** -<br>
|
||||
**returns:** self<br>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user