paintutils.loadImage
From ComputerCraft Wiki
Revision as of 21:33, 28 February 2013 by Mtdj2 (Talk | contribs) (Added a link in the exapmles to paintutils.drawImage())
| Loads an image (images created with the paint program) | |
| Syntax | paintutils.loadImage(string path) |
| Returns | boolean true on success, otherwise false |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| 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)
|