MegaPaint BLD

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Format details)
Line 3: Line 3:
 
|subcat=Graphics
 
|subcat=Graphics
 
|extensions={{ext|bld}}
 
|extensions={{ext|bld}}
|released=~1990
+
|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.
 
'''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.
Line 11: Line 11:
 
== Related formats ==
 
== Related formats ==
 
Other MegaPaint formats include:
 
Other MegaPaint formats include:
* .PAT - MegaPaint Pattern
+
* .PAT - MegaPaint pattern
* .VEK - MegaPaint Vector format
+
* .VEK - MegaPaint vector format
* .LIB - Megapaint symbols library
+
* .LIB - MegaPaint symbols library
* .FNT - MegaPaint Font
+
* .FNT - MegaPaint font
  
 
== Format details ==
 
== Format details ==
Line 21: Line 21:
 
! Offset !! Type !! Details
 
! 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.
+
|0 || signed int16 BE || Code for the image width and compression scheme. 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.
 
|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.
+
|4 || bytes || The pixel data. After decompression if necessary (see below), the format is 1 bit/pixel, white-is-zero. Rows are padded to the next byte boundary.
 
|}
 
|}
  
 
=== Decompression algorithm ===
 
=== Decompression algorithm ===
 +
Read the next byte, follow the instructions below, repeat.
 
{| class="wikitable"
 
{| class="wikitable"
 
! Code byte (N) !! Instructions
 
! Code byte (N) !! Instructions
Line 40: Line 41:
 
* [[XnView]]
 
* [[XnView]]
 
* [[Konvertor]]
 
* [[Konvertor]]
 +
* [[RECOIL]]
 
* [http://whatis.rest7.com/how-to-open-bld-file Rest7 Online Converter]
 
* [http://whatis.rest7.com/how-to-open-bld-file Rest7 Online Converter]
 
* MegaPaint
 
* MegaPaint

Revision as of 12:56, 28 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 and compression scheme. 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 padded to the next byte boundary.

Decompression algorithm

Read the next byte, follow the instructions below, repeat.

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