Difference between revisions of "Paintutils.loadImage"
From ComputerCraft Wiki
| Line 11: | Line 11: | ||
|desc=The program loads the image 'bar' onto the variable 'foo' and then shows it on screen: | |desc=The program loads the image 'bar' onto the variable 'foo' and then shows it on screen: | ||
|code=foo = paintutils.loadImage("bar") | |code=foo = paintutils.loadImage("bar") | ||
| − | + | [[paintutils.drawImage]](foo) | |
}} | }} | ||
}} | }} | ||
Revision as of 14:00, 17 November 2012
| Loads an image created with the built in Advanced Computer program paint. | |
| Syntax | paintutils.loadImage(( path )) |
| Returns | True or false |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| The program loads the image 'bar' onto the variable 'foo' and then shows it on screen: | |
| Code |
foo = paintutils.loadImage("bar")
paintutils.drawImage(foo)
|