| 1 |
This is version 1.0 of pnmpalm, netpbm converters for Palm pixmaps. |
| 2 |
|
| 3 |
It's derived from version 1.0 of ppmtoTbmp. The original 'ppmtoTbmp' |
| 4 |
program has been renamed 'pnmtopalm', and has been rewritten to handle |
| 5 |
the various bitmaps that exist as of PalmOS 3.5, and to handle |
| 6 |
colormaps, a transparent color, and the various compression formats |
| 7 |
recognized by Palm OS. The 'Tbmptopnm' program is now 'palmtopnm', |
| 8 |
and has been updated to handle the various newer bitmap formats as |
| 9 |
well. Man pages for 'pnmtopalm' and 'palmtopnm' have been added. See |
| 10 |
those man pages for more information. Note that command-line switches |
| 11 |
have changed. |
| 12 |
|
| 13 |
As with Tbmptoppm, ppm images must be quantified properly before |
| 14 |
being passed to pnmtopalm. Several colormap files are provided to |
| 15 |
use for this: |
| 16 |
- palmgray1.map -- 1-bit grayscale (i.e. monochrome) |
| 17 |
- palmgray2.map -- 2-bit grayscale |
| 18 |
- palmgray4.map -- 4-bit grayscale |
| 19 |
- palmcolor8.map -- 8-bit color, using the default color palette |
| 20 |
|
| 21 |
-- Bill Janssen <[email protected]> |
| 22 |
|
| 23 |
|
| 24 |
One source of information on Palm image formats is |
| 25 |
http://www.kawt.de/doc/palmimages.html. |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
The original ppmtoTbmp README read as follows: |
| 30 |
|
| 31 |
This is version 1.0 of ppmtoTbmp, a ppm to Pilot bitmap converter. |
| 32 |
|
| 33 |
To compile it, you'll need the netpbm package. Last I checked, it was |
| 34 |
available at "ftp://ftp.x.org/contrib/utilities/netpbm-1mar1994.p1.tar.gz". |
| 35 |
Change the Makefile to point to the directory that contains the netpbm |
| 36 |
header files, and make. |
| 37 |
|
| 38 |
Usage: ppmtoTbmp [-2bit] [file.ppm] |
| 39 |
|
| 40 |
If the ppm file is not specified, one is read from stdin. The -2bit option |
| 41 |
produces a 2-bit bitmap instead of the normal 1-bit bitmap. The ppm must |
| 42 |
have at most 4 colors in it (for 2-bit) or at most 2 colors (for 1-bit). |
| 43 |
Common invocations might be: |
| 44 |
|
| 45 |
xbmtopbm icon.xbm | ppmquant -fs -map q2.map | ppmtoTbmp > tAIB03e8.bin |
| 46 |
giftopnm image.gif | ppmquant -fs -map q4.map | ppmtoTbmp -2bit > Tbmp0bb8.bin |
| 47 |
|
| 48 |
(q2.map and q4.map are trivial 2 and 4 color maps, respectively, and are |
| 49 |
included in this distribution.) |
| 50 |
|
| 51 |
To include the resulting bitmap in a .prc file, just name the output |
| 52 |
tAIB03e8.bin (for an application icon) or Tbmpxxxx.bin (for a form bitmap, |
| 53 |
where xxxx is replaced by four hex digits giving the bitmap ID). |
| 54 |
|
| 55 |
I'll probably make Tbmptopnm later, and put it in the 1.1 release. |
| 56 |
|
| 57 |
- Ian Goldberg <[email protected]> |