mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 15:04:03 +09:00
arseiotnarseit
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
if (!exec_args[1]) {
|
||||
printerrln("Usage: jpdectest image.jpg")
|
||||
}
|
||||
|
||||
filesystem.open("A", exec_args[1], "R")
|
||||
|
||||
let status = com.getStatusCode(0)
|
||||
@@ -20,7 +24,8 @@ println(`dim: ${imgw}x${imgh}`)
|
||||
println(`converting to displayable format...`)
|
||||
|
||||
// convert colour
|
||||
graphics.imageToDisplayableFormat(imageData, -1048577, imgw, imgh, 4, 2)
|
||||
graphics.setGraphicsMode(0)
|
||||
graphics.imageToDisplayableFormat(imageData, -1048577, imgw, imgh, 4, 1)
|
||||
|
||||
sys.free(imageData)
|
||||
sys.free(infile)
|
||||
|
||||
Reference in New Issue
Block a user