Difference between revisions of "Paintutils.drawImage"
From ComputerCraft Wiki
(Added the page) |
m (Made a link to itself) |
||
Line 11: | Line 11: | ||
|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|paintutils.loadImage("bar")]] | |code=image = [[paintutils.loadImage|paintutils.loadImage("bar")]] | ||
− | paintutils.drawImage(image, 3, 5) | + | [[paintutils.drawImage|paintutils.drawImage(image, 3, 5)]] |
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Revision as of 21:34, 28 February 2013
Function paintutils.drawImage | |
Draws an image at x and y (images created with the paint program). | |
Syntax | paintutils.drawImage(Variable image handle, int x-position, int y-position) |
Returns | boolean true on success, otherwise false |
Part of | ComputerCraft |
API | paintutils |
Examples
Example | |
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) |