Skip Navigation.

NWE Help: Graphics: XV: Coordinates

NWE Home :: Help :: Graphics :: XV

Displaying Pixel data

Clicking (and optionally dragging) the Middle mouse button inside the image window will display pixel information in the following format:

196, 137 = 191,121,209 #bf79d1 (287 42 81 HSV) [ 0, 0]

Position
The first pair of numbers (196,137) are the x and y positions of the cursor, in pixels. (Counting down and in from the top left corner.)

RGB Color Code
The first triplet of numbers (191,121,209) are the RGB values of the selected pixel. The components will have integer values in the range 0-255. The values displayed are prior to any HSV/RGB modification, but after any colormap changes. See "The Color Editor" for details.

Hexidecimal Color Code
The next item is a six-digit value expressing the RGB values of the selected pixel in hex, in the #rrggbb format. This is the same format used to specify colors to other X programs, which may be useful.

HSV values
The second triplet of numbers (287 42 81) are the HSV values of the selected pixel. The first component will have integer values in the range 0-359, and the second and third components will have integer values in the range 0-100. The values displayed are prior to any HSV/RGB modification, but after any colormap changes. See "The Color Editor" for details. Also, see "RGB & HSV Colorspaces" for more information about what these numbers mean.

Distance
Finally, the last pair of numbers is the distance (dx, dy) between the current mouse position and where the mouse was originally clicked.

A Few Tips

  • If you actually want to measure some pixels, it will probably help to zoom in on a the relevant portion of the image, so that you can see the individual pixels. (See "Zooming.")
  • When you display the coordinates and colors for a pixel, XV sets the 'current color' value used by some painting tools. (See "Image Editing.")
  • The string displayed when you middle-click is automatically copied to your X server's "cut buffer" when you measure pixel values in XV. This makes it easy to paste the data in another window--just middle-click in another window and you've got your data. (See "Pasting Text.")