Editing Selections


Making a selection is not necessarily the end of your work. You can add to the selection, subtract from the selection, expand and contract the selection, and more.

Adding to a Selection

After making an initial selection, you can add to it. To see how this option works, open a new 500x500, 72dpi image with the background set to white. Then follow these steps:

  1. Choose the Selection tool and, in the Tool Options window, set the Selection Type to Rectangle.

  2. Draw a rectangular selection in the upper-left corner of the image.

  3. Place the mouse in the lower-right corner of your selection (not too near the corner, though) and, while holding down the Shift key, draw another rectangular selection.

    You should now have an area selected that resembles two overlapping rectangles (see Figure 35.8). Interesting.

    Figure 35.8. Adding to a selection.

    graphics/35fig08.gif

  4. Try that again, but this time change the Selection Type to Circle and start somewhere near where the two rectangles overlap.

Hmmm you should now have a fairly complex shape building up, consisting of a couple of rectangles and a circle (see Figure 35.9).

Figure 35.9. Adding more to a selection.

graphics/35fig09.gif

You might be getting the idea that you can actually create some fairly complex shapes using just the selection tools, and you are right. In addition to adding to a selection, you also can subtract from it, as discussed in the next section.

Subtracting from a Selection

To subtract from a selection, choose a selection tool and, while holding down the Ctrl key, make a selection that overlaps the currently selected area. To give it a try, follow these steps:

  1. Choose the Selection tool and, in the Tool Options window, set the Selection Type to Circle.

  2. On the selection made in the previous section, move the mouse to the middle of the first circular area you created.

  3. Hold down the Ctrl key and draw a circular selection. When you release the mouse button, the new circle will be cut from the selected area (see Figure 35.10).

    Figure 35.10. Subtracting from a selection.

    graphics/35fig10.gif

Wow! Can you see some of the possibilities? You can use any of the selection tools to add to and subtract from a selection. Using these tools together, you can make very sophisticated selections. These selections can be around existing portions of an image or, as you've just done, on new images.

To see how these techniques can be used, I created a Star shape, added a rounded rectangle and subtracted another rounded rectangle. If you fill the image with blue and add an Inner Bevel effect, the result could easily become a button for a Web page (see Figure 35.11).

Figure 35.11. Creating a button image from selections.

graphics/35fig11.gif

All these techniques are covered throughout this book. In fact, by the end of this book, you'll be able to create interfaces, or buttons , like the one pictured in Figure 35.11.

Expanding and Contracting a Selection

Sometimes a selection is almost right, but not quite the way you want it. You might need to expand or contract the selection. To do so, choose Selections, Modify, Expand or Contract and then enter a value in the dialog box. This step expands or contracts the selection by the number of pixels you enter in the dialog box.

Growing a Selection

At other times, you might need to include a little more of an area that has similarly colored pixels. You can do so by choosing Selections, Modify, Grow Selection. This option is useful if you made a selection with the Magic Wand tool and, with the setting you chose for Tolerance, selected most of the area you needed. Instead of resetting Tolerance and trying again, Selections, Modify, Grow Selection is often enough to get those extra pixels.

Selecting Similar Areas

Growing a selection grabs adjoining pixels, but what if the area you want isn't contiguous to the area you've already selected? Simple. You can select areas in the image based on whether or not they are similar to the area already selected.

For example, say you have some black text on a white background, and you select the background area by clicking the background with the Magic Wand tool. Doing so selects the background area around the text, but it doesn't select the white area inside letters such as O and P.

No problem. Choose Selections, Modify, Select Similar. This selects the rest of the white areas (because the background that you selected is white), including those pesky areas inside certain letters.

Loading and Saving Selections

What should you do if you've made a really complex selection and you'd like to save it? You should do just that. Save it!

With an area selected, you can save the selection in two ways. You can save the selection to disk, where it will remain until you need it later, or you can save it to an Alpha channel. Alpha channels are special areas that keep selections. These channels are saved along with the file and can be reloaded later.

To save a selection as a file, choose Selections, Save to Disk. A standard Windows Save dialog box enables you to name and save the selection.

To save a selection as an Alpha channel, choose Selections, Save to Alpha Channel. This option opens the Save to Alpha dialog box, in which you can choose the document with which to save the channel and see the available channels (see Figure 35.12).

Figure 35.12. Save to Alpha dialog box.

graphics/35fig12.gif

After you select the document and click OK, you can name the selection. This option is handy if you'll be saving multiple selections with a document. After you save a selection, you can reload it into the current image. The nice thing about saving a selection to disk is that you can also load the selection into other images, as well.

To load a selection that you saved as a file, choose Selections, Load from Disk. This step brings up a standard Windows Open dialog box, where you can browse for and open any selection you previously saved.

To load a selection that has been saved as an Alpha channel, choose Selections, Load from Alpha Channel. Doing so opens the Load From Alpha dialog box, which enables you to choose the document and the channel you want to load (see Figure 35.13).

Figure 35.13. Load from Alpha dialog box.

graphics/35fig13.gif

Note that the Load from Alpha dialog box shows a thumbnail preview of the selection, which comes in handy if you have saved several selections. Being able to choose the selection visually is a big plus if, like me, you're too lazy to name your selections as you save them.



Sams Teach Yourself Internet and Web Basics All in One
Sams Teach Yourself Internet and Web Basics All in One
ISBN: 0672325330
EAN: 2147483647
Year: 2003
Pages: 350
Authors: Ned Snell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net