Difference between revisions of "Paintutils.loadImage"
From ComputerCraft Wiki
m |
|||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=paintutils.loadImage | |name=paintutils.loadImage | ||
− | |args=( path | + | |args=(path) |
|api=paintutils | |api=paintutils | ||
− | |returns= | + | |returns=true on success, otherwise false |
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc= | + | |desc=Loads an image (images created with the [[Paint|paint]] program) |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 08:47, 7 December 2012
Function paintutils.loadImage | |
Loads an image (images created with the paint program) | |
Syntax | paintutils.loadImage((path)) |
Returns | true on success, otherwise false |
Part of | ComputerCraft |
API | paintutils |
Examples
Example | |
The program loads the image 'bar' onto the variable 'image' and then draws it on the screen starting at position {3, 5} | |
Code |
image = paintutils.loadImage("bar") paintutils.drawImage(image, 3, 5) |