resample-dithering wip

This commit is contained in:
minjaesong
2022-04-06 18:04:41 +09:00
parent 4c19e19b8a
commit ffad375f23
3 changed files with 80 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ println(`dim: ${imgw}x${imgh}`)
println(`converting to displayable format...`)
// convert colour
graphics.imageToDisplayableFormat(imageData, -1048577, imgw*imgh, 4)
graphics.imageToDisplayableFormat(imageData, -1048577, imgw, imgh, 4, true)
sys.free(imageData)
sys.free(infile)