Difference between revisions of "Paintutils.loadImage"
From ComputerCraft Wiki
(kfjdgnjrtkf) |
m (Reverted edits by 199.19.105.156 (talk) to last revision by AfterLifeLochie) |
||
| Line 1: | Line 1: | ||
| − | + | {{lowercase}} | |
| + | {{Function | ||
| + | |name=paintutils.loadImage | ||
| + | |args=( path ) | ||
| + | |api=paintutils | ||
| + | |returns=True or false | ||
| + | |addon=ComputerCraft | ||
| + | |desc=Loads an image created with the built in Advanced Computer program paint. | ||
| + | |examples= | ||
| + | {{Example | ||
| + | |desc=The program loads the image 'bar' onto the variable 'foo' and then shows it on screen: | ||
| + | |code=foo = paintutils.loadImage("bar") | ||
| + | [[paintutils.drawImage]](foo) | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Revision as of 17:10, 4 December 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)
|