When you are
working with the selection tools, you can easily get the
impression that selections have hard edges i.e. every pixel
is either inside the selection or out of it. But when you
read about feathering and anti-aliasing you may have
realized that this is not so - it is possible for some
pixels to be 'partially selected' so that effects applied to
the image are applied to these pixels only to a limited
extent. The easiest way to learn about this is to use the
Quick Mask feature - this gives you the added bonus that
you can then use just about any tool to modify the
selected area. For example, you can use the paintbrush tool
or the airbrush to add to or subtract from the selection.
Look at the bottom of the toolbox. Up until now you have
always worked in Standard Mode. As you know,
Standard Mode indicates the limit of the selection with a
line of marching ants. Open any picture and select
part of it using the rectangular marquee tool. Then switch
to Quick Mask mode by clicking the icon
in the
bottom left corner of the image window (or choose
Select>Toggle Quick Mask or type Shift+Q).
You will notice that in Quick Mask mode the selection
appears clear while the unselected area appears to be
protected by areas of transparent red plastic.
It's important to understand that while you are in Quick
Mask mode you are only modifying the mask that is
floating above the picture (though it is not strictly
speaking a separate 'layer') - you are not modifying
the underlying picture at all. For example, you might try to
draw some colored lines onto the picture using the
paintbrush but you will not succeed - all that will happen
is that you extend the masked (protected, red) area
if your chosen color was dark or you will extend the
selection (the clear area) if your chosen color was light.
As you see, the actual colors used do not matter in Quick
Mask mode - all that matters is whether the current
foreground color is light or dark. If the foreground color
is white, as here:
,
then your brushstrokes will completely erase parts of the
existing mask (assuming you have chosen a hard-edged brush).
If the foreground color is black (you can switch the
background and foreground colors by clicking the
double-headed arrow in the above picture) then your brush
strokes will apply a thoroughly impermeable mask that will
completely protect that part of the picture from changes
once you turn off quick mask mode. If the foreground color is
neither white nor black then your brush strokes will
apply a mask that is somewhat permeable - the lighter the
color then the more 'permeable' will be the mask and the
more these areas will be affected by changes you attempt to
apply to the picture after returning to standard mode. Now,
read this paragraph again - it's important!

To get some practice in Quick Mask mode, let's use the
picture below. I took it in Thailand on a canoeing trip with
students of the Hong Kong International School. The stilt
house is occupied by a family that collects swallows'
nests from the caves of this island. Swallows' nests, made
from the birds' saliva, are an expensive delicacy in many
Asian countries.

Although the picture is already pretty good
(I took it myself, after all), we'll try to give it a
surreal feel as in the photo below. We want to apply a
strong affect to the top of the picture, gradually weakening
towards the bottom. This is a perfect reason to use the
Quick Mask mode.

Copy the picture to your folder, then open
it and switch to Quick Mask Mode. We'll use the Gradient tool
to create the mask. Before you use the tool, make sure that
the color area shows that the foreground color is
black and the background color is white as shown here:
.
If this is not the case then click the little black and
white icon in the bottom left corner of the color area. Make
sure also that the tool is set to 100% opacity. Now drag with the tool from the
bottom of the picture to the top - holding down the Ctrl
key while you do this will help to ensure that you drag
vertically. In standard mode this would apply a gradient
going from black to white but since we are in Quick Mask
mode we are applying a mask that appears red at the bottom
and clear at the top. This is what we want since the clear
parts of the picture will be affected most by changes that
we make after returning to standard mode.
Now return to Standard Mode so that we can
apply the color effect. Notice that only the top part of the
picture seems to be selected, according to the marching
ants. But this is misleading - the marching ants cannot show
the true nature of the mask so they just indicate which part
of the picture is going to be affected most by
modifications that we apply. I got the color effect as
follows: First choose Layer>Colors>Colorize. If you
slide the Hue control it won't have much effect on the sky
because you cannot colorize areas that are very bright (like
the sky) or very dark, so to successfully colorize the sky
you will also need to darken it a bit with the lightness
control. Now deselect the selection (Ctrl+Shift+A) and save
your picture (full size).

You should get some more practice with the
Quick Mask mode, so try changing the first picture below
into the second (you don't need to add the word 'sample').
The picture shows a typical resident of San Francisco,
California.


I did this in a similar way to the Thailand
picture, but this time I switched the shape of the gradient
tool to radial
to put a mask over his/her face before using
Layer>Colors>Desaturate
to take the saturation of the unmasked areas progressively
down to zero. Save your work.

You might sometimes spend quite a long time in Quick Mask
mode and may want to save your carefully prepared mask. In
the GIMP, you can save a mask in the form of an 'alpha
channel'. This is beyond the scope of this class
however, so read about alpha channels in the help system if
you want to know more.