1Pamx User Manual(0) Pamx User Manual(0)
2
3
4
6 pamx - display Netpbm image in X Window System window
7
8
10 pamx
11
12 [-fullscreen] [-install] [-private] [-fit] [-pixmap] [-verbose] [-dis‐
13 play=x-display] [-title=text] [-foreground=color] [-background=color]
14 [-border=color] [-geometry=x-geometry-string] [-visual=name]
15 netpbm_file
16
17 All options can be abbreviated to their shortest unique prefix. You
18 may use two hyphens instead of one to designate an option. You may use
19 either white space or an equals sign between an option name and its
20 value.
21
22
24 This program is part of Netpbm(1).
25
26 pamx displays a Netpbm image in an X Window System window. It is like
27 a very simple version of the classic X image viewer xloadimage.
28
29 If you don't specify the input file netpbm_file, the input is from
30 Standard Input. The input image can be any Netpbm image format. If
31 the input is a multi-image stream, pamx ignores all but the first
32 image.
33
34 pamx is not the best choice for general purpose viewing of images,
35 because it is a traditional simple Netpbm building block. It is a good
36 thing to build into other programs and can be useful for debugging more
37 complex systems, but you can get much more powerful viewers that can
38 display Netpbm images. For example, xloadimage, xli, xzgv, and any web
39 browser.
40
41 The initial window is at most 90% of the size of the display unless the
42 window manager does not correctly handle window size requests or if
43 you've used the -fullscreen option. You may move the image around in
44 the window by dragging with the first mouse button. The cursor will
45 indicate which directions you may drag, if any. You may exit the win‐
46 dow by typing 'q' or control-C when the keyboard focus is on the win‐
47 dow.
48
49 ppmsvgalib is a similar program that displays an image on a Linux sys‐
50 tem without the need for the X Window System.
51
52
53
55 pamx uses the resource class name Xloadimage for window managers which
56 need this resource set. This is, of course, the same resource class
57 that the conventional viewer program xloadimage uses.
58
59
61 -border=color
62 This sets the background portion of the window which is not cov‐
63 ered by any images to be color.
64
65
66 -display=display_name
67 This names the X display in which to put the window. E.g. 0:0.
68
69
70 -fit Force image to use the default visual and colormap. This is
71 useful if you do not want technicolor effects when the colormap
72 focus is inside the image window, but it may reduce the quality
73 of the displayed image.
74
75
76 -fullscreen
77 Use the entire screen to display the image.
78
79
80 -geometry=WxH[{+,-}X{+,-}Y
81 This sets the size and position of the window in which pamx dis‐
82 plays the image.
83
84 By default, the window size exactly matches the image size,
85 except that if you don't specify -fullscreen, the maximum is 90%
86 of the screen dimensions.
87
88
89 -install
90 Forcibly install the image's colormap when the window is
91 focused. This violates ICCCM standards and only exists to allow
92 operation with naive window managers. Use this option only if
93 your window manager does not install colormaps properly.
94
95
96 -pixmap
97 Force the use of a pixmap as backing-store. This is provided
98 for servers where backing-store is broken (such as some versions
99 of the AIXWindows server). It may improve scrolling performance
100 on servers which provide backing-store.
101
102
103 -private
104 Force pamx to use of a private colormap. By default, pamx allo‐
105 cates colors shared unless there are not enough colors avail‐
106 able.
107
108
109 -verbose
110 Causes pamx to print various information about what it's doing
111 to Standard Error.
112
113
114 -visual=visual_name
115 Force the use of a specific visual type to display an image. By
116 default, pamx tries to pick the best available image for a par‐
117 ticular image type. The available visual types are: Direct‐
118 Color, TrueColor, PseudoColor, StaticColor, GrayScale, and Stat‐
119 icGray. You may use the shortest unique prefix of these names,
120 and case is not significant.
121
122
123 -background=color
124 Use color as the background color instead of the default (usu‐
125 ally white but this depends on the image type) if you are trans‐
126 ferring a monochrome image to a color display.
127
128
129 -foreground=color
130 Use color as the foreground color instead of black if you are
131 transferring a monochrome image to a color display. You can
132 also use this to invert the foreground and background colors of
133 a monochrome image.
134
135
136 -title=text
137 Set the title bar title of the window. Default is the file name
138 of the input file, or 'stdin' if the image is from Standard
139 Input.
140
141
142
143
145 ppmsvgalib(1), pam(1), pnm(1), xzgv, xloadimage, xli
146
147
149 pamx is by Bryan Henderson, in March 2006, based on xloadimage by Jim
150 Frost, Centerline Software, jimf@centerline.com, 1989-1993.
151
152 Jim's code contained the following copyright notice and license:
153
154
155 Copyright 1989, 1993 Jim Frost
156
157
158 Permission to use, copy, modify, distribute, and sell this soft‐
159 ware and its documentation for any purpose is hereby granted
160 without fee, provided that the above copyright notice appear in
161 all copies and that both that copyright notice and this permis‐
162 sion notice appear in supporting documentation. The author
163 makes no representations about the suitability of this software
164 for any purpose. It is provided "as is" without express or
165 implied warranty.
166
167
168 THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFT‐
169 WARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
170 FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
171 INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
172 RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
173 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
174 OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
175 SOFTWARE.
176
177
178 Lots of other people contributed to Xloadimage, and they are listed in
179 the file COPYRIGHT in the source code.
180
181
183 pamx was new in Netpbm 10.34 (May 2006).
184
185 pamx is essentially based on the classic X displayer program xloadimage
186 by Jim Frost, 1989. Bryan Henderson stripped it down and adapted it to
187 Netpbm in March 2006.
188
189 The following features of xloadimage are left out of pamx, to be more
190 compatible with Netpbm's philosophy of simple building blocks. Note
191 that there are other programs in Netpbm that do all of these things:
192
193
194 · slide show
195
196 · zoom in/out
197
198 · ability to accept formats other than Netpbm
199
200 · ability to display on the root window
201
202 · image transformations (brightening, clipping, rotating, etc)
203
204 · decompressing and other decoding of input
205
206
207 pamx also differs from xloadimage in that it uses Libnetpbm.
208
209 There is virtually no code from xloadimage actually in pamx, because
210 Bryan rewrote it all to make it easier to understand.
211
212
213
214netpbm documentation 25 March 2006 Pamx User Manual(0)