1 .\" Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software is furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice (including the next
11 .\" paragraph) shall be included in all copies or substantial portions of the
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 .\" DEALINGS IN THE SOFTWARE.
22 .TH xmag_multivis 6 "23 March 1992"
23 .IX "xmag_multivis" "" "\f3xmag_multivis\f1(6) \(em screen maginifcation demo" ""
24 .IX "demo" "screen" "demonstration programs" "screen magnification demo \(em \f3xmag_multivis\f1(6)"
26 xmag_multivis \- magnify parts of the screen
30 .BI \-display " display"
32 .BI \-geometry " geom"
36 .BI \-mag " magfactor"
42 .BI \-bg " colorpixelvalue"
52 program allows you to magnify portions of the screen. If no
53 explicit region is specified, a square centered around the pointer is displayed
54 indicating the area to be enlarged. Once a region has been selected, a window
55 is popped up showing a blown up version of the region in which each pixel in
56 the source image is represented by a small square of the same color. Pressing
57 Button1 on the pointer in the enlargement window pops up a small window
58 displaying, in hexadecimal notation,
59 the position, pixel value, and RGB value of the pixel
60 under the pointer until the
61 button is released. Pressing the space bar or any other pointer button removes
62 the enlarged image so that another region may be selected.
63 Pressing ``q'', ``Q'', or ``^C'' in the
64 enlargement window exits the program.
66 On displays that export multiple Visuals, the selected region is
67 first examined for overlaps by windows of differing depth, visual or
68 colormap. If the selected region does contain such windows, the
69 image displayed in the enlargement window is constructed by
70 compositing the images from the various windows under the selected
71 region. In this case, the composite image will only be displayed
72 in a TrueColor 24 bit deep window, provided such a window can be
73 created on that screen.
74 The image displayed in the enlargement window will exhibit
75 true colors for every pixel in the composite image, regardless of
76 the Colormap state (Installed/UnInstalled) of any of the windows within
81 .BI \-display " display"
82 This option specifies the X server to use for both reading the screen and
83 displaying the enlarged version of the image.
85 .BI \-geometry " geom"
86 This option specifies the size and/or location of the enlargement window. By
87 default, the size is computed from the size of the source region and the
88 desired magnification. Therefore, only one of
91 .BI \-mag " magfactor"
92 options may be specified if a window size is given with this option.
95 This option specifies the size and/or location of the source region on the
96 screen. By default, a 64x64 square centered about the pointer is provided
97 for the user to select an area of the screen. The size of the source is used
98 with the desired magnification to compute the default enlargement window
99 size. Therefore, only one of
100 .BI \-geometry " size"
102 .BI \-mag " magfactor"
103 options may be specified if a source size is given with this option.
105 .BI \-mag " magfactor"
106 This option specifies an integral factor by which the source region should be
107 enlarged. The default magnification is 5.
108 This is used with the size of the source to compute the default
109 enlargement window size. Therefore, only one of
110 .BI \-geometry " size"
113 options may be specified if a magnification factor is
114 given with this option.
117 This option specifies the width in pixels of the border surrounding the
121 This option specifies the color to use for the border surrounding the
124 .BI \-bg " colororpixelvalue"
125 This option specifies the name of the color to be used as the background of
126 the enlargement window. If the name begins with a percent size (%), it is
127 interpreted to be an absolute pixel value. This is useful when displaying
128 large areas since pixels that are the same color as the background do not
129 need to be painted in the enlargement. The default is to use the BlackPixel
133 This option specifies the name of a font to use when displaying pixel values
134 (used when Button1 is pressed in the enlargement window).
137 This option indicates that the server should be grabbed during the dynamics
138 and the call to XGetImage. This is useful for ensuring that clients don't
139 change their state as a result of entering or leaving them with the pointer.
143 program uses the following X resources:
145 .BR geometry " (class " Geometry ")"
146 Specifies the size and/or location of the enlargement window.
148 .BR source " (class " Source ")"
149 Specifies the size and/or location of the source region on the screen.
151 .BR magnification " (class " Magnification ")"
152 Specifies the enlargement factor.
154 .BR borderWidth " (class " BorderWidth ")"
155 Specifies the border width in pixels.
157 .BR borderColor " (class " BorderColor ")"
158 Specifies the color of the border.
160 .BR background " (class " Background ")"
161 Specifies the color or pixel value to be used for the background of the
164 .BR font " (class " Font ")"
165 Specifies the name of the font to use when displaying pixel values when the
166 user presses Button1 in the enlargement window.
172 On displays that export multiple visuals, if the selected
173 region needs to be composited from each window,
176 on a TrueColor 24 bit window to display the selected region,
177 and exits with a failure if such a window cannot be created.
178 It would be nice, instead if
181 best possible visual to display the image, or instead tried
182 to display the image in a visual selected by the user in
183 a command line option.
185 Because the window size equals the source size times the magnification, you
186 only need to specify two of the three parameters. This can be confusing.
188 Being able to drag the pointer around and see a dynamic display
191 Another possible interface would be for the user to drag out the desired
195 Copyright 1988, Massachusetts Institute of Technology.
197 MultiVisual code: Copyright 1990, 1997, Oracle and/or its affiliates. All rights reserved.
200 Jim Fulton, MIT X Consortium
202 MultiVisual code: Milind Pansare, Sun Microsystems, Inc.