i would like to know how to store an paintutils compatible image as a table to be loaded within the main program...
please help!
Storing An Image as a table to be loaded within the program
Started by thewmatt, Sep 02 2014 02:38 AM
6 replies to this topic
#1
Posted 02 September 2014 - 02:38 AM
#2
Posted 02 September 2014 - 04:00 AM
Loaded how? From a file? How do you intend to create the image?
#3
Posted 11 September 2014 - 04:00 AM
Bomb Bloke, on 02 September 2014 - 04:00 AM, said:
Loaded how? From a file? How do you intend to create the image?
#4
Posted 11 September 2014 - 04:15 AM
You could try loading it from a saved file with paintutils, then serialize the resulting image table and save it, then copy the serialized table into your program.
#6
#7
Posted 16 September 2014 - 04:18 AM
local fileHandle = fs.open("someFile","w")
fileHandle.write(textutils.serialize(yourTable))
fileHandle.close()
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users











