paintutils.loadImage

From ComputerCraft
Jump to navigation Jump to search

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

Loads an image from a file, which can then be drawn by paintutils.drawImage. Images created with Paint can be loaded by this function.

ExampleExampleDraw a Image
Loads and draws a Image.
Code
local pic = paintutils.loadImage("/picture.nfp")
paintutils.drawImage(pic)