CEL Image Format
Jump to navigation
Jump to search
CEL Image Format
There is no example of an image in this format — upload one!
| Format type | Image |
|---|---|
| Hardware | VGA |
| Colour depth | 8-bit (VGA) |
| Minimum size (pixels) | 0×0 |
| Maximum size (pixels) | 65535×65535 |
| Palette | Internal or external |
| Plane count | 1 |
| Transparent pixels? | Yes |
| Hitmap pixels? | No |
| Games |
The CEL Image Format is used by Isle of the Dead for all in game graphics. There are 2 distinct file formats used, but confusingly both use the .CEL file extension.
All .CEL files in the CELS3 directory are simple 64×64 8-bit VGA images using an external colour palette. These files are used for in-world items and enemy sprites.
All .CEL files in the STILLCEL are variable size VGA images using an colour palette defined inside the file. A more detailed format is given below.
Signature
The first 2 bytes are the file are always 0x1991.
File format
| Data type | Name | Description |
|---|---|---|
| UINT16LE | Signature | Always the value 0x1991 |
| UINT16LE | width | Width of the image, in pixels |
| UINT16LE | height | Height of the image, in pixels |
| UINT8[26] | description | File description? Sometimes the file name, mostly zero filled |
| UINT8[width * height] | pixelData | Pixel data |
| UINT8[768] | palette | 256×3 6-bit RGB colours |