2 |
- |
1 |
|
|
|
2 |
DMD bitmap to PostScript translator. Much of the code came from abm,
|
|
|
3 |
which was written by Guy Riddle.
|
|
|
4 |
|
|
|
5 |
By default 6 byte patterns are used to encode the output bitmap. Use
|
|
|
6 |
the -b option to change the pattern size. Bitmaps are unpacked one
|
|
|
7 |
scanline at a time and re-encoded in a format that looks like,
|
|
|
8 |
|
|
|
9 |
bytes patterns count
|
|
|
10 |
|
|
|
11 |
where bytes and count are decimal integers and patterns is a series
|
|
|
12 |
of hex digits. Bytes is the number of bytes represented by the hex
|
|
|
13 |
pattern, and count is the number of additional times the pattern
|
|
|
14 |
should be repeated. For example,
|
|
|
15 |
|
|
|
16 |
2 FFFF 4
|
|
|
17 |
5 FFFFFFFFFF 1
|
|
|
18 |
10 FFFFFFFFFFFFFFFFFFFF 0
|
|
|
19 |
|
|
|
20 |
all represent 10 consecutive bytes of ones. Scanlines are terminated
|
|
|
21 |
by a 0 on a line by itself.
|
|
|
22 |
|