Difference between revisions of "Paintutils.loadImage"
From ComputerCraft Wiki
m (Corrected dead link) |
|||
Line 10: | Line 10: | ||
{{Example | {{Example | ||
|desc=The program loads the image 'bar' onto the variable 'image' and then draws it on the screen starting at position {3, 5} | |desc=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")]] | + | |code=image = [[paintutils.loadImage|paintutils.loadImage("bar")]] |
paintutils.drawImage(image, 3, 5) | paintutils.drawImage(image, 3, 5) | ||
}} | }} |
Revision as of 20:23, 9 December 2012
Function paintutils.loadImage | |
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 |