After about an hour of skimming the wiki API list to find a way to load (not edit) a paint image onto a monitor. How would I get it onto the monitor?
Putting an image on a monitor
Started by hugeblank, Dec 13 2015 12:40 AM
2 replies to this topic
#1
Posted 13 December 2015 - 12:40 AM
#2
Posted 13 December 2015 - 12:51 AM
paintutils.loadImage() to get the image into memory, term.redirect() to switch the default rendering device, then paintutils.drawImage() to get it onto that.
Eg:
Eg:
local mon = peripheral.find("monitor")
local image = paintutils.loadImage("someImage")
local oldTerm = term.redirect(mon)
paintutils.drawImage(image, 1, 1)
term.redirect(oldTerm)
#3
Posted 13 December 2015 - 01:10 AM
Thanks!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











