proportional scale of the image on image resample

This commit is contained in:
minjaesong
2022-04-07 10:36:48 +09:00
parent ba97e2982c
commit 77b95a82f7
4 changed files with 23 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ dma.comToRam(0, 0, infile, fileLen)
println("decoding")
// decode
const [imgw, imgh, imageData] = graphics.decodeImageResample(infile, fileLen, 560, 448)
const [imgw, imgh, imageData] = graphics.decodeImageResample(infile, fileLen, 0, 448)
println(`dim: ${imgw}x${imgh}`)
println(`converting to displayable format...`)