Changes

Format:SGX (SymbOS graphic files)

243 bytes added, 14:35, 30 May 2023
/* Extended 4 and 16 colour graphic */
<pre>
byte 0: [bit0-6] 64 [bit7] flag, if graphic data is compressed
byte 1: type (0=4 colour graphic, 5=16 colour graphic)
byte 2,3: width in bytes (1-255 [4c] or 2-254 [16c])
byte 4,5: width in pixel (1-1020 [4c] or 1-508 [16c])
byte 6,7: height in pixel (1-65535)
if uncompressed:
byte 8-n: linear graphic data (size = byte2,3 * byte6,7)
if compressed:
byte 8,9: size of compressed graphic data
byte 10-n: compressed linear graphic data (ZX0 with special SymbOS header)
</pre>
This chunk type can be recognized with 64 (uncompressed) or 192 (compressed) in the first byte. 4 colour graphics are encoded in CPC Mode 1 format (see above). 16 colour graphics are encoded in MSX Screen 5/7 format. Every byte contains 2 pixels:
<pre>
bit7-4 (high nibble): left pixel
* the maximum width for 16 colour graphics is 508 pixel
* 16 colour graphics must always have an even width in bytes (2,4,...,254)
 
===Line feed===