Calamus Raster Graphic file format: Difference between revisions

From Atari Wiki
Jump to navigation Jump to search
(New page)
 
m (updated info)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
<pre>
 
Calamus Raster Graphic *.CRG
 
Calamus Raster Graphic *.CRG
   
Line 23: Line 24:
 
To decompress: Code byte (N) Instructions
 
To decompress: Code byte (N) Instructions
 
N <= 127 Emit the next N+1 bytes literally.
 
N <= 127 Emit the next N+1 bytes literally.
N >= 128 Emit the next byte N?127 times.
+
N >= 128 Emit the next byte N-127 times.
 
 
 
After decompression, pixels are in left-to-right, top-to-bottom order. The format is
 
After decompression, pixels are in left-to-right, top-to-bottom order. The format is
 
8 pixels per byte, most significant bit first, white is 0. Rows are padded to the next
 
8 pixels per byte, most significant bit first, white is 0. Rows are padded to the next
 
byte boundary.
 
byte boundary.
  +
  +
Additional information:
  +
After the compressed data is 2 extra bytes. The purpose of these extra bytes is
  +
unknown. They can be safely ignored. Values encountered:
  +
$FFFF
  +
$0D0A (EC-Paint always writes this value)
  +
</pre>
  +
Back to [[ST Picture Formats]]

Latest revision as of 02:57, 31 January 2017