1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
The Corel Draw file format, follows the following general structure:
1> Data in Little Endian order
"01 00 00 00" = decimal 1
"10 00 00 00" = decimal 16
"00 01 00 00" = decimal 256
2> The file is a tree of chunks
2.1> CHUNK STRUCTURE
--------------------------------
4 | Chunk identifier
4 | Chunk size (little endian cardinal)
--------------------------------
Chunk header and body
--------------------------------
3.1> LIST CHUNK STRUCTURE
--------------------------------
4 | Chunk identifier. Always "LIST"
4 | Chunk size.
4 | List identifier.
--------------------------------
Chunk body
--------------------------------
3.2> <DISP> CHUNK STURCTURE
--------------------------------
4 | Chunk identifier
4 | Chunk size (little endian)
4 | ??
--------------------------------
4 | Header size. Usual value is 40
4 | Image width in pixels.
4 | Image height in pixels.
2 | Color plane value. Usual value is 1.
2 | Color depth.
4 | Compression. Usually 0, preview is not compressed.
4 | Bitmap size.
4 | Image width in pixels/metre.
4 | Image height in pixels/metre.
4 | Number of colors.
4 | Number of used colors.
--------------------------------
Chunk body (RGB byte array)
--------------------------------
3.3>
Folii color representation
<fild> CHUNK STRUCTURE
--------------------------------
4 | Chunk identifier
4 | Chunk size (little endian)
--------------------------------
4 | Unique fill identifier
4 | ???
1 | Color type (0x02-CMYK; 0x05-RGB
7 | ???
4 | Color fied (CMYK, BGR)
--------------------------------
Chunk body (unknown)
--------------------------------
|