MegaPaint BLD

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Rewrite)
(Format details)
Line 15: Line 15:
 
* .LIB - Megapaint symbols library
 
* .LIB - Megapaint symbols library
 
* .FNT - MegaPaint Font
 
* .FNT - MegaPaint Font
 +
 +
== Format details ==
 +
BLD format:
 +
{| class="wikitable"
 +
! Offset !! Type !! Details
 +
|-
 +
|0 || signed int16 BE || Code for the image width. Actual width is 1 + the absolute value of this field. If negative, image is compressed.
 +
|-
 +
|2 || signed(?) int16 BE || Code for the image height. Actual height is 1 + the value of this field.
 +
|-
 +
|4 || bytes || The pixel data. After decompression if necessary (see below), the format is 1 bit/pixel, white-is-zero. Rows are apparently padded to the next byte boundary, though the software might only write widths that are a multiple of 8.
 +
|}
 +
 +
=== Decompression algorithm ===
 +
{| class="wikitable"
 +
! Code byte (N) !! Instructions
 +
|-
 +
|N=0 or N=255 || Read the next byte (C). Emit C+1 bytes of value N.
 +
|-
 +
|Any other || Emit 1 byte of value N.
 +
|}
  
 
== Software ==
 
== Software ==

Revision as of 14:57, 27 August 2018

File Format
Name MegaPaint BLD
Ontology
Extension(s) .bld
Released ~1990

MegaPaint BLD is the main native raster graphics format of MegaPaint, a graphics editor developed by TommySoftware. There were editions of MegaPaint for Atari ST, MS-DOS, and Windows. Some were released as shareware. The best information about MegaPaint might be in German.

In addition to raster graphics, MegaPaint apparently has some sort of support for vector graphics.

Contents

Related formats

Other MegaPaint formats include:

  • .PAT - MegaPaint Pattern
  • .VEK - MegaPaint Vector format
  • .LIB - Megapaint symbols library
  • .FNT - MegaPaint Font

Format details

BLD format:

Offset Type Details
0 signed int16 BE Code for the image width. Actual width is 1 + the absolute value of this field. If negative, image is compressed.
2 signed(?) int16 BE Code for the image height. Actual height is 1 + the value of this field.
4 bytes The pixel data. After decompression if necessary (see below), the format is 1 bit/pixel, white-is-zero. Rows are apparently padded to the next byte boundary, though the software might only write widths that are a multiple of 8.

Decompression algorithm

Code byte (N) Instructions
N=0 or N=255 Read the next byte (C). Emit C+1 bytes of value N.
Any other Emit 1 byte of value N.

Software

Sample files

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox