MegaPaint file format: Difference between revisions

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

Latest revision as of 20:29, 2 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