Posted 02 September 2014 - 03:38 AM
i would like to know how to store an paintutils compatible image as a table to be loaded within the main program…
please help!
please help!
Im trying to make a image as a table. like when you use paintutils.loadImage(), except the image table will be in the program instead of needing loaded by paintutils at allLoaded how? From a file? How do you intend to create the image?
thanks! (: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.
um, how do i save it :huh:/>thanks! (: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.
local fileHandle = fs.open("someFile","w")
fileHandle.write(textutils.serialize(yourTable))
fileHandle.close()