Files
Basalt/docs/objects/Image/loadImage.md
2022-12-24 11:48:35 +01:00

390 B

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
local mainFrame = basalt.createFrame()
local aImage = mainFrame:addImage():loadImage("test.nfp")
<image path="test.nfp" />