BMP Tools
Three utilities to process BMP files - cropping, splitting and joining them.
Unlike many other tools like that, they require almost no memory, being useful
to process large data files, such as digital maps.
Further, the
bmpjoin
tool automatically detects digits in image names and
determines how to join them - names such as abc01_23.bmp
, def45.bmp
are accepted.
Written in 2001.
Technologies used:
Download:
- bmptools.zip (70 kB)
Usage example:
Usage: bmpcrop input.bmp output.bmp x1 y1 x2 y2 Usage: bmpsplit [-digits N] [-overlap N] in.bmp out_prefix tile_x tile_y Usage: bmpjoin [-style (0-7)] [-overlap N] input*.bmp output.bmp
total.bmp
bmpcrop total.bmp cropped.bmp 0 15 26 30
cropped.png
bmpsplit total.bmp part 13 15
part0000.bmp
part0001.bmp
part0002.bmp
part0100.bmp part0101.bmp part0102.bmp
part0200.bmp part0201.bmp part0202.bmp
part0100.bmp part0101.bmp part0102.bmp
part0200.bmp part0201.bmp part0202.bmp
bmpjoin -style 0 part*.bmp total0.bmp bmpjoin -style 1 part*.bmp total1.bmp bmpjoin -style 2 part*.bmp total2.bmp bmpjoin -style 3 part*.bmp total3.bmp bmpjoin -style 4 part*.bmp total4.bmp bmpjoin -style 5 part*.bmp total5.bmp bmpjoin -style 6 part*.bmp total6.bmp bmpjoin -style 7 part*.bmp total7.bmp
total0.bmp
total1.bmp
total2.bmp
total3.bmp
total4.bmp
total5.bmp
total6.bmp
total7.bmp
bmpjoin -overlap 1 part*.bmp overlap.bmp
overlap.bmp