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

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


.TL
Pamx User Manual
.SH 1
pamx
.LP
Updated: 25 March 2006
.br
Table Of Contents
.SH 2
NAME
.LP
pamx - display Netpbm image in X Window System window
.SH 2
SYNOPSIS
.LP
\fBpamx\fR
[\fB-fullscreen\fR]
[\fB-install\fR]
[\fB-private\fR]
[\fB-fit\fR]
[\fB-pixmap\fR]
[\fB-verbose\fR]
[\fB-display=\fR\fIx-display\fR]
[\fB-title=\fR\fItext\fR]
[\fB-foreground=\fR\fIcolor\fR]
[\fB-background=\fR\fIcolor\fR]
[\fB-border=\fR\fIcolor\fR]
[\fB-geometry=\fR\fIx-geometry-string\fR]
[\fB-visual=\fR\fIname\fR]
\fInetpbm_file\fR
.LP
All options can be abbreviated to their shortest unique prefix.  You
may use two hyphens instead of one to designate an option.  You may
use either white space or an equals sign between an option name and its
value.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpamx\fR displays a Netpbm image in an X Window System window.
It is like a very simple version of the classic X image viewer
\fBxloadimage\fR.
.LP
If you don't specify the input file \fInetpbm_file\fR, the input is
from Standard Input.  The input image can be any Netpbm image format.
If the input is a multi-image stream, \fBpamx\fR ignores all but the
first image.
.LP
\fBpamx\fR is not the best choice for general purpose viewing of
images, because it is a traditional simple Netpbm building block.  It
is a good thing to build into other programs and can be useful for
debugging more complex systems, but you can get much more powerful
viewers that can display Netpbm images.  For example, \fBxloadimage\fR,
\fBxli\fR, \fBxzgv\fR, and any web browser.
.LP
The initial window is at most 90% of the size of the display unless
the window manager does not correctly handle window size requests or
if you've used the \fB-fullscreen\fR option.  You may move the image
around in the window by dragging with the first mouse button.  The
cursor will indicate which directions you may drag, if any.  You may
exit the window by typing 'q' or control-C when the keyboard focus is
on the window.
.LP
\fBppmsvgalib\fR is a similar program that displays an image on a
Linux system without the need for the X Window System.
.SH 2
X RESOURCE CLASS
.LP
.LP
\fBpamx\fR uses the resource class name \fBXloadimage\fR for
window managers which need this resource set.  This is, of course, the
same resource class that the conventional viewer program
\fBxloadimage\fR uses.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-border=\fR\fIcolor\fR"
This sets the background portion of the window which is not
covered by any images to be \fIcolor\fR.
.IP "\fB-display=\fR\fIdisplay_name\fR"
This names the X display in which to put the window.  E.g. \fB0:0\fR.
.IP "\fB-fit\fR"
Force image to use the default visual and colormap.  This is
useful if you do not want technicolor effects when the colormap focus
is inside the image window, but it may reduce the quality of the
displayed image.
.IP "\fB-fullscreen\fR"
Use the entire screen to display the image.
.IP "\fB-geometry=\fR\fIW\fR\fBx\fR\fIH\fR[{\fB+\fR,\fB-\fR}\fIX\fR{\fB+\fR,\fB-\fR}\fIY\fR"
This sets the size and position of the window in which \fBpamx\fR
displays the image.
.LP
By default, the window size exactly matches the image size, except that
if you don't specify \fB-fullscreen\fR, the maximum is 90% of the screen
dimensions.
.IP "\fB-install\fR"
Forcibly install the image's colormap when the window is focused.
This violates ICCCM standards and only exists to allow operation with
naive window managers.  Use this option only if your window manager
does not install colormaps properly.
.IP "\fB-pixmap\fR"
Force the use of a pixmap as backing-store.  This is provided for
servers where backing-store is broken (such as some versions of the
AIXWindows server).  It may improve scrolling performance on servers
which provide backing-store.
.IP "\fB-private\fR"
Force \fBpamx\fR to use of a private colormap.  By default,
\fBpamx\fR allocates colors shared unless there are not enough colors
available.
.IP "\fB-verbose\fR"
Causes \fBpamx\fR to print various information about what it's
doing to Standard Error.
.IP "\fB-visual=\fR\fIvisual_name\fR"
Force the use of a specific visual type to display an image.  By
default, \fBpamx\fR tries to pick the best available image for a
particular image type.  The available visual types are:
\fBDirectColor\fR, \fBTrueColor\fR, \fBPseudoColor\fR,
\fBStaticColor\fR, \fBGrayScale\fR, and \fBStaticGray\fR.
You may use the shortest unique prefix of these names, and case is
not significant.
.IP "\fB-background=\fR\fIcolor\fR"
Use \fIcolor\fR as the background color instead of the default
(usually white but this depends on the image type) if you are
transferring a monochrome image to a color display.
.IP "\fB-foreground=\fR\fIcolor\fR"
Use \fIcolor\fR as the foreground color instead of black if you are
transferring a monochrome image to a color display.  You can also use
this to invert the foreground and background colors of a monochrome
image.
.IP "\fB-title=\fR\fItext\fR"
Set the title bar title of the window.  Default is the file name of
the input file, or "stdin" if the image is from Standard Input.
.RE
.SH 2
SEE ALSO
.LP
\fBppmsvgalib\fR,
\fBpam\fR,
\fBpnm\fR,
\fBxzgv\fR,
\fBxloadimage\fR,
\fBxli\fR
.SH 2
AUTHOR
.LP
.LP
\fBpamx\fR is by Bryan Henderson, in March 2006, based on
\fBxloadimage\fR by Jim Frost, Centerline Software,
jimf@centerline.com, 1989-1993.
.LP
Jim's code contained the following copyright notice and license:
.LP
Copyright 1989, 1993 Jim Frost
.LP
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation.  The author makes no representations about
the suitability of this software for any purpose.  It is provided "as
is" without express or implied warranty.
.LP
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
.LP
Lots of other people contributed to Xloadimage, and they are listed
in the file COPYRIGHT in the source code.
.SH 2
HISTORY
.LP
.LP
\fBpamx\fR was new in Netpbm 10.34 (May 2006).
.LP
\fBpamx\fR is essentially based on the classic X displayer program
\fBxloadimage\fR by Jim Frost, 1989.  Bryan Henderson stripped it
down and adapted it to Netpbm in March 2006.
.LP
The following features of \fBxloadimage\fR are left out of \fBpamx\fR,
to be more compatible with Netpbm's philosophy of simple building blocks.
Note that there are other programs in Netpbm that do all of these things:
.IP \(bu
slide show
.IP \(bu
zoom in/out
.IP \(bu
ability to accept formats other than Netpbm
.IP \(bu
ability to display on the root window
.IP \(bu
image transformations (brightening, clipping, rotating, etc)
.IP \(bu
decompressing and other decoding of input
.LP
\fBpamx\fR also differs from \fBxloadimage\fR in that it uses
Libnetpbm.
.LP
There is virtually no code from \fBxloadimage\fR actually in
\fBpamx\fR, because Bryan rewrote it all to make it easier to
understand.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
X RESOURCE CLASS
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.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.