FBIPF writing impl

This commit is contained in:
minjaesong
2022-08-19 13:26:37 +09:00
parent b3ac861946
commit 79f4584dd4
5 changed files with 65 additions and 7 deletions

View File

@@ -230,7 +230,7 @@ let headerBytes = [
0x1F, 0x54, 0x53, 0x56, 0x4D, 0x69, 0x50, 0x46, // magic
imgw & 255, (imgw >>> 8) & 255, // width
imgh & 255, (imgh >>> 8) & 255, // height
((hasAlpha) ? 1 : 0), 0x00, // has alpha
((hasAlpha) ? 1 : 0), 0x00, // has alpha, iPF type 1
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // reserved
]