Difference between revisions of "Paintutils.loadImage"

From ComputerCraft Wiki
Jump to: navigation, search
m (Added to CAT:APIFunctions.)
Line 14: Line 14:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:API_Functions]]

Revision as of 21:19, 28 November 2012


Grid Redstone.png  Function paintutils.loadImage
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

Grid paper.png  Example
The program loads the image 'bar' onto the variable 'foo' and then shows it on screen:
Code
foo = paintutils.loadImage("bar")
paintutils.drawImage(foo)