Difference between revisions of "PCX Image"

From XentaxWiki
Jump to: navigation, search
(Format Specifications)
(Format Specifications)
Line 24: Line 24:
 
                                 // 4 = 16 colors
 
                                 // 4 = 16 colors
 
                                 // 8 = 256 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
 +
  
  

Revision as of 14:51, 5 November 2020

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



MultiEx BMS Script

Not written yet.

Notes and Comments

None.

Games

List of games using this file format:

Compatible Programs

  • IrfanView
  • GIMP