next up previous contents index
Next: Operating under low-memory conditions Up: Basic image manipulation Previous: Using ``scissors'' to manually   Contents   Index


Selecting and copying text

Although the above procedure works well for selecting objects in an image or for selecting individual letters, it is often desirable to copy or reposition an entire label. This is easily done by the following procedure:

  1. Select a rectangular region around the text with the mouse.
  2. Move the mouse pointer over the text, inside the rectangle indicated by ``crawling dots''.
  3. Double-click on the text. The crawling-box rectangle will be replaced by crawling-dots outlining the portion of the text that was inside the box. It is important to click directly on the text, and not on the background near the text; otherwise, everything except the text will be selected, creating a stencil.
  4. Move the mouse pointer over the crawling-dots. The cursor will change to double arrows.
  5. Click and drag the text to its new location. When the mouse button is released, only the selected pixels will be copied to the new location.
  6. If the ``move'' button in the information window is depressed, the text will be moved instead of copied.


\begin{picture}( 100,40 )(0,0)
\put(0, 10){ \epsfig{file = move-text1.ps, width...
...in}}
\put(300, -13){ \epsfig{file = move-text4.ps, width=1.3in}}
\end{picture}

Copying a region of text.

Notes:

  1. If the mouse is clicked on a point containing a label or graphic element, the alpha channel is used to select the object. Otherwise, the object is selected on the basis of its RGB distance from the threshold value. This allows anti-aliased text and multi-colored graphic elements to be selected.
  2. If a rectangular area has been selected (by dragging the mouse), the region selected by a double-click will be confined within that rectangular area. If no rectangular region is selected, the object can be as large as the display size or the image (whichever is smaller).

To summarize:


next up previous contents index
Next: Operating under low-memory conditions Up: Basic image manipulation Previous: Using ``scissors'' to manually   Contents   Index
root 2006-11-13