Difference between revisions of "MegaPaint file format"

From AtariForumWiki2018
Jump to: navigation, search
(New page)
 
Lp (talk)
m (moved MegaPaint to MegaPaint file format: For consistency)
(No difference)

Revision as of 02:29, 3 January 2017

MegaPaint    *.BLD

1 word          image width in pixels [if negative, file is compressed]
1 word          image height in pixels
-------
4 bytes         total for header

??              monochrome image data [max. 1440x1856]
                uncompressed size = ((width+7)/8)*height

Compression scheme:

For a given control byte 'n':
  n = 0         : use the next byte + 1 times and repeat 0
  n = 255       : use the next byte + 1 times and repeat 255
  n>0 and n<255 : output n (literal)

Back to ST Picture Formats