paintutils.drawImage

From ComputerCraft
Jump to navigation Jump to search

paintutils.drawImage
Function
Syntax
paintutils.drawImage()
Returns nil
API paintutils
Source CC:Tweaked (source)

Draws a Image which has been created by paintutils.loadImage or paintutils.parseImage.

This function does not restore the original cursor position after being called. You may have to manually set it back with the term.setCursorPos function.
This function does not restore the original background colour after being called. You may have to manually set it back with the term.setBackgroundColour function.
ExampleExampleDraw a Image
Loads and draws a Image.
Code
local pic = paintutils.loadImage("/picture.nfp")
paintutils.drawImage(pic)