Difference between revisions of "Lua:createPicture"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Added related function template.) |
||
| Line 21: | Line 21: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local picture = createPicture() | local picture = createPicture() | ||
picture.loadFromFile("C:\\MyTrainer\\logo.png") | picture.loadFromFile("C:\\MyTrainer\\logo.png") | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:51, 26 June 2026
Creates an empty Picture object.
A Picture is a container for Bitmap, PNG, JPEG, or Icon graphics.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| None | — | This function does not take parameters. |
Returns[edit]
Picture — A new empty picture.
Examples[edit]
1 local picture = createPicture()
2 picture.loadFromFile("C:\\MyTrainer\\logo.png")