DCX Format                                  

The DCX file format allows multiple pages to be stored in one file.  A DCX
file has a header followed by pages.  Each page is exactly the same as a
PCX file, including the PCX header for each bitmap.

The DCX file header starts with a 4-byte integer ID used to verify the file
type.  This ID is always 987654321 (decimal).  After the ID is a list of
offsets into the file for the pages of the document.  The list is a simple
array of 4-byte integers, the last of which has a value of 0 to mark the
end of the array.  The first page is page 0, and the offset from the
beginning of the file of the nth page is stored at array location n.  The
array has a maximum of 1024 entries, including the 0 terminator.  This
means that up to 1023 pages can be stored in one DCX file, and that the
maximum size of the index is 4096 bytes.  The index can be smaller if fewer
than 1023 pages are in the file, though this is optional.

See Also ASCII File Interpretation Error Codes


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .