Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/palmtopnm.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Palmtopnm User Manual
.SH 1
palmtopnm
.LP
Updated: 26 January 2005
.br
Table Of Contents
.SH 2
NAME
.LP
palmtopnm - convert a Palm Bitmap to a PNM image
.SH 2
SYNOPSIS
.LP
\fBpalmtopnm\fR
[\fB-verbose\fR]
[\fB-rendition\fR \fIN\fR]
[\fB-showhist\fR]
.br
[\fIpalmfile\fR]
.br
\fBpalmtopnm\fR
\fB-transparent\fR
[\fB-verbose\fR]
[\fIpalmfile\fR]
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpalmtopnm\fR reads a Palm Bitmap as input, from Standard Input or
\fIpalmfile\fR and produces a PPM image as output.
.LP
Alternatively (when you specify \fB-transparent\fR),
\fBpalmtopnm\fR writes the value of the transparent color in the Palm
Bitmap to Standard Output.
.LP
\fBPalmtopnm\fR can convert Palm Bitmaps with the following features.
This does not mean that it doesn't handle other features.  These are just
the ones we found worth mentioning.
.IP \(bu
Version 0
.IP \(bu
Version 1
.IP \(bu
Version 2
.IP \(bu
Version 3 (new in Netpbm 10.27 (March 2005))
.IP \(bu
Scanline compression
.IP \(bu
RLE compression
.IP \(bu
Packbits compression (new in Netpbm 10.27 (March 2005))
.LP
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-verbose\fR"
Display various interesting information about the input file and process.
.IP "\fB-transparent\fR"
If the Palm Bitmap has a transparent color set, 
\fBpalmtopnm\fR writes the value for that
color to Standard Output in the form #RRGGBB, where
RR, GG, and BB are two-digit hexadecimal numbers
indicating a value in the range 0 through 255.  If no transparent color is set
in the Bitmap, \fBpalmtopnm\fR writes nothing.  \fBpalmtopnm\fR does not
generate any output image when you specify \fB-transparent\fR.
.IP "\fB-rendition N\fR"
Palm Bitmaps may contain several different renditions of the same
image, with different depths.  By default, \fBpalmtopnm \fR operates
on the first rendition (rendition number 1) in the image.  This
switch allows you to operate on a different rendition.  The value must
be between 1 and the number of renditions in the image, inclusive.
.IP "\fB-showhist\fR"
This option causes \fBpalmtopnm\fR to 
write a histogram of colors in the input file to Standard Error.
.RE
.SH 2
SEE ALSO
.LP
\fBpnmtopalm\fR,
pnm,
PalmOS
Reference,
PalmOS
Companion.
.SH 2
LIMITATIONS
.LP
.LP
You cannot generate an alpha mask if the Palm Bitmap has a
transparent color.  However, you can still do this with
\fBppmcolormask\fR with a Netpbm pipe similar to:
.LP
\fBpalmtopnm bitmap.palm | 
ppmcolormask `palmtopnm -transparent bitmap.palm`\fR
.SH 2
HISTORY
.LP
.LP
Before Netpbm 10.23 (July 2004), there was a \fB-forceplain\fR
option.  But that had been redundant for a long time, since the Netpbm 
common option \fB-plain\fR does the same thing.
.SH 2
AUTHORS
.LP
This program was originally written as Tbmptopnm.c, by Ian Goldberg.
It was heavily modified by Bill Janssen to add color, compression, and
transparency function.
.LP
Copyright 1995-2001 by Ian Goldberg and Bill Janssen.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
LIMITATIONS
.IP \(bu
HISTORY
.IP \(bu
AUTHORS
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.