Monday, February 2, 2009

Adobe Photoshop's QuickMask Mode and Alpha Channels

By Andrew Whiteman

A typical Photoshop document consists of three colour channels: Red, Green and Blue. However, in addition to the colour channels, Photoshop also uses channels to store information which can be used in the process of selecting and masking different pixels within an image. To distinguish them from colour channels, these channels are normally referred to as alpha channels. Alpha channels are a huge topic in Photoshop but, in this article, we will focus on two techniques which cause alpha channels to be created automatically: the Save Selection command and QuickMask mode.

Before you can work with a given portion of an image, you need to make a selection. Photoshop has a number of tools and techniques for making selections and the time taken will depend on the complexity of the subject. Certain photographic elements, such as hair, are notoriously difficult to select and may take hours. So, having made a selection, it is not unreasonable for the user to want to save the selection for later reuse. The Save Selection command, which is found in the Select menu, is one of the ways of doing this.

Each time you save a selection Photoshop creates an alpha channel and prompts you to give it a name. You can view the alpha channel by going to the Channel window and clicking on its name. Alpha channels are simple greyscale images which use a visual code to represent selections: the black areas on the channel represent areas which will not be highlighted when the channel is loaded as a selection and white areas represent those areas which will be highlighted. In actual fact, the reverse can be true since the user can set his or her preferences by double-clicking the channel thumbnail in the Channel window. The different levels of grey within an image represent different levels of selection. This makes alpha channels ideal for saving selections with feathering and fades.

When looking at alpha channels in isolation, they appears black and white. However, it is also useful to look at alpha channels at the same time as the image to which they will be applied. This means that Photoshop needs a way of representing the alpha channel which will not obscure the image. By default, the alpha channel information changes to a red overlay with an opacity of 50%: the user can change both the colour and opacity of the overlay by double-clicking the thumbnail of the alpha channel in the Channels window.

This same technique of representing selection and masking as an overlayed colour is exactly the same as the one used in Photoshop's QuickMask mode. To enter QuickMask mode, click on the QuickMask icon on the toolbar or just press "q" on the keyboard. Whenever you are in QuickMask mode, any of Photoshop's paint tools, such as the paintbrush and gradient, can be used to make selections. Selections are shown in exactly the same way as they are on alpha channels. Furthermore, if you look at the Channels window when in QuickMask mode, you will notice that Photoshop creates a temporary alpha channel called "QuickMask" which will disappear when you exit QuickMask mode. - 15634

About the Author: