Difference between revisions of "Paintutils.loadImage"
From ComputerCraft Wiki
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=paintutils.loadImage | |name=paintutils.loadImage | ||
| − | |args=[[String_(type)| | + | |args=[[String_(type)|string]] path |
|api=paintutils | |api=paintutils | ||
| − | |returns=true on success, otherwise false | + | |returns=[[Boolean_(type)|boolean]] true on success, otherwise false |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Loads an image (images created with the [[Paint|paint]] program) | |desc=Loads an image (images created with the [[Paint|paint]] program) | ||
Revision as of 08:49, 7 December 2012
| 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) |