mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-09 06:34:04 +09:00
proportional scale of the image on image resample
This commit is contained in:
@@ -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...`)
|
||||
|
||||
BIN
assets/disk0/test.png
Normal file
BIN
assets/disk0/test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 260 KiB |
BIN
assets/disk0/transparent.png
Normal file
BIN
assets/disk0/transparent.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user