PCX Image

From XentaxWiki
Jump to: navigation, search

PCX


Format Specifications

// PCX Image file format

1 byte (uint8) - magic // "0x0A"
1 byte (uint8) - version // 0 = PC Paintbrush version 2.5 (EGA palette)
                         // 2 = PC Paintbrush version 2.8 (EGA palette)
                         // 3 = PC Paintbrush version 2.8 (no palette)
                         // 4 = PC Paintbrush for Windows
                         // 5 = PC Paintbrush version 3.0

1 byte (uint8) - compression type // 0 = no compression
                                  // 1 = RLE compression

1 byte (uint8) - bits per pixel // 1 = 2 colors
                                // 2 = 4 colors
                                // 4 = 16 colors
                                // 8 = 256 colors

2 bytes (uint16) - min. X position
2 bytes (uint16) - min. Y position
2 bytes (uint16) - max. X position
2 bytes (uint16) - max. Y position
2 bytes (uint16) - horizontal image resolution
2 bytes (uint16) - vertical image resolution
48 bytes - EGA palette
1 byte - reserved
1 byte (uint8) - number of color planes
2 bytes (uint16) - number of bytes of one color plane
2 bytes (uint16) - palette mode // 1 = monochrome or color
                                // 2 = grayscale
2 bytes (uint16) - horizontal source system resolution
2 bytes (uint16) - vertical source system resolution
54 bytes - reserved
x bytes - image data

MultiEx BMS Script

Not written yet.

Notes and Comments

None.

Games

List of games using this file format:

Compatible Programs

  • IrfanView
  • GIMP
  • Many more...