Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not ImagesAPI then
- os.loadAPI(fs.combine(fs.getDir(shell.getRunningProgram()), "ImagesAPI"))
- end
- local args = {...}
- if #args < 1 then
- error("ExampleUsage.lua <File>")
- end
- term.clear()
- term.setCursorPos(1,1)
- local BinFile = ImagesAPI.BinaryFile:new(args[1])
- local Parser = ImagesAPI.BitmapParser:new(BinFile)
- ImagesAPI.ImageHelpers.drawImage(Parser)
- Parser:save(args[1]..".image")
- print("\n")
Add Comment
Please, Sign In to add comment