Offset (in bytes) |
Size (in bytes) |
Contents |
---|---|---|
+0 | 4 | Identifier 'KiSS' ( 4Bh 69h 53h 53h ) |
+4 | 1 | Cel file mark (the type of cel):
|
+5 | 1 | bits per pixel:
|
+6 | 2 | Reserved. Must be set to 0. |
+8 | 2 | Width ( 1 ... XMAX ) (+8 = low byte, +9 = high byte) |
+10 | 2 | Height ( 1 ... YMAX ) (+10 = low byte, +11 = high byte) |
+12 | 2 | X-offset ( 0 ... XMAX ) (+12 = low byte, +13 = high byte) |
+14 | 2 | Y-offset ( 0 ... YMAX ) (+14 = low byte, +15 = high byte) |
+16 | 16 | Reserved. Must all be 0. |
+32 | ... | Pixel data, ordered by rows. See Remarks for details. |
Byte 0 | Byte 1 | Byte 2 | Byte N |
---|---|---|---|
7654 3210 pix0 pix1 |
7654 3210 pix2 pix3 |
7654 3210 pix4 pix5 |
7654 3210 pixN 0000 |
Byte 0 | Byte 1 | Byte 2 | Byte N |
---|---|---|---|
76543210 pixel 0 |
76543210 pixel 1 |
76543210 pixel 2 |
76543210 pixel 3 |
Byte 0 | Byte 1 | Byte 2 | Byte 3 |
---|---|---|---|
76543210 blue |
76543210 green |
76543210 red |
76543210 alpha |
32-bit cels are clickable at any point where alpha is greater than 0.
"Ghosted" cels are the exception. |
Offset (in bytes) |
Size (in bytes) |
Contents |
---|---|---|
+0 | 2 | Width ( 1 ... XMAX ) (+0 = low byte, +1 = high byte) |
+2 | 2 | Height ( 1 ... YMAX ) (+2 = low byte, +3 = high byte) |
+4 | ... | Pixel data, ordered by rows. Always 4-bit pixel data. |