diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-11-29 03:36:17 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-11-29 03:36:17 +0000 |
commit | e922b50c250a6fa7e7dc9b24ffc184ab2d1a3f33 (patch) | |
tree | d863f40d878ecebaf7587731b7c0959e1356fd18 | |
parent | 6d4eddb41bbce695c269c7317bffd1d9a864b5a7 (diff) | |
download | netpbm-mirror-e922b50c250a6fa7e7dc9b24ffc184ab2d1a3f33.tar.gz netpbm-mirror-e922b50c250a6fa7e7dc9b24ffc184ab2d1a3f33.tar.xz netpbm-mirror-e922b50c250a6fa7e7dc9b24ffc184ab2d1a3f33.zip |
miscellaneous update
git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@3443 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | ppmtobmp.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ppmtobmp.html b/ppmtobmp.html index 6eadce77..490c9779 100644 --- a/ppmtobmp.html +++ b/ppmtobmp.html @@ -2,7 +2,7 @@ <HTML><HEAD><TITLE>Ppmtobmp User Manual</TITLE> </HEAD><BODY> <H1>ppmtobmp</H1> -Updated: 29 October 2008 +Updated: 28 November 2018 <BR> <A HREF="#index">Table Of Contents</A> @@ -90,6 +90,23 @@ must have at most 256 pixels. <p>You may find <b>pnmcolormap</b> useful in generating the palette file. <b>pamseq</b> too. +<p>In the case of grayscale image, if you are processing the BMP image, it + may be convenient for you to have the actual gray values in the raster + part of the image rather than arbitrary indices into a palette. There is + no BMP format specifically for that, but you can achieve it by using a + palette in which each index is equal to the indexed gray value, and then + ignoring the palette when you process the BMP image. + +<P>Here is an example of doing that: + + <pre> + <kbd> + $ pamseq 1 255 >mapfile.pgm + + $ ppmtobmp -mapfile=mapfile.pgm input.pgm >output.bmp + </kbd> + </pre> + <p>This option was new in Netpbm 10.45 (December 2008). </DL> |