Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
15
docs/docs1_6/objects/Image/shrink.md
Normal file
15
docs/docs1_6/objects/Image/shrink.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## shrink
|
||||
Shrinks the current image into a blittle image.
|
||||
|
||||
#### 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"):shrink()
|
||||
```
|
||||
```xml
|
||||
<image path="test.nfp" shrink="true" />
|
||||
```
|
||||
Reference in New Issue
Block a user