-
Notifications
You must be signed in to change notification settings - Fork 39
Image
The image object is for adding more advanced backgrounds. It also provides a :shrink() function, where you can shrink the images to smaller ones. This functionallity is fully provided by the blittle library created by Bomb Bloke. I did not ask for permission to add it into the framework. If the creator wants me to remove the blittle part, just text me on discord!
Here are all possible functions available for image: Remember image inherits from object:
loads a image into the memory.
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aImage = mainFrame:addImage("myFirstImage"):loadImage("randomImage.nfp"):show()
Arguments: string path
returns: self
loads a blittle image into the memory.
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aImage = mainFrame:addImage("myFirstImage"):loadBlittleImage("blittleImage.blt"):show()
Arguments: string path
returns: self
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)
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aImage = mainFrame:addImage("myFirstImage"):loadBlittleImage("randomImage.nfp"):shrink():show()
Arguments: -
returns: self
Thanks for checking out our wiki, join our discord for more help: discord.gg/yM7kndJdJJ