University of North Carolina at Chapel Hill | Health Sciences Library | Online Tutorials


HSL Home

 Welcome

 Getting Started

 Imaging Concepts

 Scanning

 Basic Image Editing

 More Image Editing

 Online Images


Evaluate this module

More Image Editing Techniques


Selection Techniques
| Working with Layers | Adding Type | Painting

The image editing techniques described in this section are not advanced, but they build on the techniques presented the the last section. They include techniques for isolating part of an image (selecting), for creating images with multiple layers, and for special purposes (typing and painting).

Selection techniques

Up to this point, we have discussed image editing as it applies to an entire image. But in some cases, you may wish to isolate part of an image for editing, or to combine it with other images. In Photoshop, this is called a selection.  When part of an image has been selected, the image editing tools and commands work the same way, but only the selected part of the image is affected.

When you make a selection, the part of the image that is protected (that is, not selected) is sometimes referred to as a mask.  Just as you might use masking tape to protect part of a wall when you are painting a room, in Photoshop you are masking the part of the image that you want to protect when you have selected part of an image for editing.

When you make a selection, a selection outline appears to show you the selected area. In the following example, a rectangular area has been selected:

selection outline

Note: In some cases, pixels may be partially selected (see feathering, below). In such a case, the selection outline is only approximate because there is no sharp boundary between selected and masked areas.

Using Selection Tools

To make a selection, click a selection tool icon in the toolbox. Then use the tool as described below.

Note: Take a look at the Options bar for the tool you are using. (If the options are not visible, choose Window>Options.) You may want to adjust the options for the tool (for example, to make the selection feathered).

In some cases, tools may be hidden "behind" other tools. Click and hold the tool to see the hidden tools.

Selecting Rectangles, Ellipses, and Rows: the Marquee tools

The rectangular marquee tool ()   is probably the most frequently used selection tool. It allows you to select rectangular areas. Click and drag diagonally with it to make a selection. 

The elliptical and row marquee tools are less frequently used. They are hidden "behind" the Marquee tool. To select an elliptical area or a single row of pixels, type M to cycle through the marquee tools. Then drag (with Elliptical tool) or click (with Single Row tools) to make a selection.

Selecting Irregularly Shaped Areas: the Lasso Tools

To create freeform selections, you can click and drag with the Lasso tool (). But the lasso tool may not give you enough control. For more control, you may find the polygon lasso and magnetic lasso tools easier to use.

The Polygon Lasso tool () is often quite useful for selecting irregularly shaped areas. To use it, click on the image, then move to another place and click again to create a segment. Click multiple times to create a selection around an irregular area in your image.  Double-click to finish the selection. Note: If you are in the middle of selecting and you make a mistake, press the backspace key to go back one segment, or click the Esc key to undo the selection entirely.

Without pressing the mouse button, move the magnetic lasso tool around an area to select it. The tool will look for edges. You can adjust its sensitivity to edges in the options bar.

Selecting by brightness and color: Magic Wand tool (W)

Click somewhere on the image with the magic wand tool to select adjacent portions of the image based on color brightness. The higher the tolerance entered in the Options palette, the more pixels are selected.

Note: In addition to the above tools, there are some additional more advanced techniques for making selections. For example, you can use the Pen tool to create paths. You can convert a path into a selection by choosing Make Selection from the Path palette menu.

General Selection techniques

  • To hide the selection outline, press Ctrl-H. To display the outline again, press Ctrl-H again.

  • To invert a selection, choose Select > Inverse. Everything that was selected becomes masked, and everything that was masked now becomes the selection.

  • To deselect, click outside of the selection, or choose Select > None.

  • You can also save a selection (Select > Save Selection) for later use (Select > Load Selection).

Adding to and subtracting from current selections

  • To add to an existing selection, press Shift

  • To subtract from an existing selection, press Alt

  • To add to an existing selection based on color, choose Select > Similar.

Moving and Cloning Selections

  • To move a selection outline, put the selection cursor inside the selected area and drag.

  • To move the contents of a selection, choose the move tool and drag the selection.

  • To clone a selection, press Alt while using the move tool.

Saving Selections for Later Use

  • To save a selection for later use, choose Select > Save Selection. The active selection will be saved, and you will be prompted to give it a name.

  • To load a saved selection, choose Select >Load Selection.

Feathering selections

Feathering gives a selection a softer edge. You can feather a selection by entering a value in the Feather checkbox in the options bar. Or you can feather an existing selection by choosing Select > Feather.

Top of Page

Working with Layers

Images in Adobe Photoshop are made up of layers. Initially, each image has only one layer (called the background layer), but you can add more layers to the image.

Layers are very useful for editing images and creating special effects. For example, you could make a copy of a layer and make some changes to it. If you don't like the results, you can delete the layer and still have your original layer as a backup. You can also combine images by putting different content on different layers.

Note: Keep in mind that layers (except for adjustment layers, described below) require a substantial amount of memory.  Photoshop files with large numbers of layers typically are large files.

To work with layers, display the Layers palette by choosing Layers from the Window menu. The following is an example of the layers palette along with an image.

layers

The first column of the layers palette shows which layers are currently visible, indicate by the eye icon (eye ). In the above example all the layers are visible. You can change a layer's visibility by clicking in the first column for the layer.

 

Note: Even when a layer is visible, part of it may be transparent. For example, this happens if you select part of an area and then press the delete key. When part of a layer is transparent, the layers underneath it can show through.

Photoshop represents transparent areas by a checkerboard pattern:

transparency

You can change the opacity of a layer by entering a value between 0 and 100 in the Opacity field at the top of the layers palette. For example, at an opacity of 10%, the layer would be nearly transparent; at an opacity of 90%, it would be almost completely opaque. The opacity default is 100%.

Editing you do within Photoshop affects the current layer. In the example above, the "Sun" layer is the current layer.

  • To make a layer the current layer, click on the layer in the Layers palette.

  • To change the name of the layer, double-click on the layer's name, then type in a new name.

  • To create a new layer, click the new layer icon at the bottom of the Layers palette, or duplicate a layer by dragging the layer to the new layer icon.

  • To delete a layer, click the trash icon, or drag the layer to the trash icon (next to the new layer icon).

  • To lock (prevent changes to) a layer, click one of the Lock: boxes near the top of the layers palette. From left to right, they are: lock transparent areas, lock pixels (prevent changes to non-transparent areas), lock layer position, and lock all.

Layer Styles

You can add special effects such as drop shadows to any layer of your Photoshop image by selecting the layer in the layers palette, then clicking the Effects button at the bottom of the layers palette:

The Layer Style dialog box will appear. Use this dialog box to create effects for the currently selected layer.

You can then save the effects you created as style by choosing "New Style." Later, if you want to use the same effects on another layer, you can click on the style in the Styles palette and the same effects will immediately be applied to that layer. (To see the Styles palette, Choose Window > Show Styles.)

Note: Transparent portions of a layer allow the layer to have edges to which you can apply effects such as drop shadows. If your layer doesn't have any transparent pixels, you may not be able to see any changes when you apply layer effects.

Combining Images

One of the great advantages of layers is that they can be used to combine images. You can combine images by opening two images in Photoshop, and then using the move tool to drag one image on top of the other. When you do this, the first image appears as a new layer in the second image.  You can also copy and paste a selection from one image to another, which also creates a new layer.

Adjustment Layers

Adjustment layers are special layers that you can use along with several image editing commands, including Levels, Photo Filters, Hue/Saturation and others. Adjustment layers allow you to make non-destructive (editable) corrections to your images. For example, if you create a Levels adjustment layer, you can go back to the Levels dialog box later and change settings at any time.

To create an adjustment layer, choose Layer > New Adjustment Layer, and then choose one of the menu items (Levels, Curves, Color Balance, etc.).  Alternatively, you can click on the adjustment layer button at the bottom of the Layers palette and you will see the same menu of items.

When you choose one of the items in the menu, an adjustment layer will be created, and a dialog box appears that allows you to change the settings.  The following shows a Levels adjustment layer.

The advantage of this over an ordinary Levels adjustment is that the adjustment layer is fully editable. At any time, you can click the adjustment layer thumbnail adjustment layer thumbnail in the layers palette to edit the layer. When you do, the dialog box will reappear and you can change the settings.

Unlike ordinary layers, adjustment layers require minimal memory and do not significantly increase the size of the file.

Top of Page

Adding Type to Images

To add type to images use the Type tool ("T" in the Toolbox).

  • To enter a single line of text, click on the image with the type tool. Then type. A type layer is automatically created.

  • To create a paragraph (column) of text, click and drag with the type tool, then start typing. When you enter the text, it will wrap at the point where you stopped dragging.

  • To reposition the text while you are using the Type tool, press the Ctrl key.The Type will change into the move tool so you can move the text box.

  • When you are finished typing, click the check mark in the options bar. To cancel, click the X mark in the options bar.

  • To adjust the color and format of your type, select the type and then change the settings in the options bar (at the top of the Photoshop desktop), or use the Character or Paragraph palettes (to display these palettes, click on the text palettes button ( ), which appears in the Options bar whenever the Type tool is selected).

When you use the Type tool, a type layer is automatically created. As long as your type is on a Type layer it is editable. If you convert it to an image layer by rasterizing it (Layer>Rasterize), you will no longer be able to edit it.

Top of Page

Painting Techniques

In addition to working with photographs and type, you can also use Photoshop create or modify images using paint bushes and colors.  The brushes are also used for some other special purposes, such as for using the healing brush and eraser tools.

Adjusting the display of paint tools

To adjust the display so that you will see the sizes of the painting tools as you use them, choose Edit > Preferences > Displays & Cursors. Click brush size.

Choosing an area to paint

To isolate an area you want to paint, make a selection. This protects the non-selected (masked) area of the image from painting. If you want to paint on the entire image, make sure nothing is selected.

Choosing Foreground and Background colors

The paint brushes paint with the current foreground color, which is shown in the toolbox. The default foreground color is black and the default background color is white, as shown below.

To swap the foreground and background colors, type X, or click on the double-sided arrow. To return to the defaults, type D.

To choose a new color, click on the foreground color in the toolbox, and the color picker will appear.

When you choose a color and then click OK, the new foreground color appears in the toolbox:

You can also choose colors by clicking in the swatches palette or color bar (in color palette), or clicking on the Eyedropper tool and using it to sample a color from the image by clicking on the image.

Using Painting Tools

Using the Paintbrush (B) 

  • Choose the tool in the toolbox. Change the brush size and other options for the tool if you wish by changing the settings in the options bar.

  • Drag on the image or selection. To constrain brush strokes to straight lines, press shift while you drag.

Using the Eraser (E) tool

The eraser erases to transparency if on a layer other than the background. It erases to the background color if you are erasing on the background layer.

Choose the Eraser tool, then choose a type of eraser from the Eraser Options palette (paintbrush, airbrush, pencil, or block). Drag on the image to erase.

Note: You may want to make a copy of your layer before you use the eraser so that you will have a backup.

Using the Paint Bucket (K)

The Paint Bucket fills adjacent areas that have colors within tolerance range of a pixel you click.

  • In the layers palette, check Preserve Transparency if you want to avoid filling transparent areas of the layer

  • Choose the Paint Bucket tool.

  • Set a tolerance value in the options bar.

  • Click in the portion of the image that you want to fill.

Creating gradients (G)

  • Click the Gradient (G) tool.

  • Choose Gradient options in the Options bar.

  • Click and drag to create a gradient.

Top of page

Copyright © 2005 Health Sciences Library, University of North Carolina at Chapel Hill