A magnification window will appear, as shown in
Figure 6-1.
Click on any pixel to see its color code and screen coordinates. The color codes are
reported in 64-bit hexadecimal format, so white is reported as (ffff, ffff, ffff). To
convert to 24-bit format, just take the first 2 hexadecimal digits from each group of 4
digits; for example, if the reported color is (3e3e, 4444, a9a9), then the 24-bit X color
code is #3e44a9.
You can increase or decrease the magnification by changing the xmag window size.
6.10
106 Chapter 6: X Utility Programs
The buttons at the top of the window perform some useful operations:
close
Closes this window.
replace
Enables you to select a new region for magnification.
new
Opens another window.
select
Selects the magnified area (just like highlighting a portion of text in a text editor);
a middle mouse click in another program, such as OpenOffice.org, will
paste the image. There is no way to place the image on the clipboard (except by
pasting into another program and then copying onto the clipboard from that
program).
paste
Pastes the current selection (not the current clipboard contents) into the image
display portion of the xmag window.
xmag is perfect for finding out the color code for a mystery color in a photograph or
a web page, for examining fine details of a user interface rendering, or for examining
anti-aliased character displays.
Pages:
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184