Welcome to the PSPUG Tutorials. For PSP V7Home   >   Tutorials   >   PSP 5 & 6 Effects   >
Flood Fill Tool
Download this tutorial.Download (240kb)
E-mail this tutorial to a friendEmail to Friend

Floodfill Tool Effect
using Masks


Created by: CarolynR.
This tutorial will teach you how to blend two images by adding masks and using the Flood Fill tool. In this exercise we have used two images - "/tutorial/html/tuteff/angels.jpg" and "/tutorial/html/tuteff/clouds.jpg". Firstly you will cut out all of the white bits on the angel image, next you'll copy the angel into a new layer on the clouds image, then finally use masks and gradients to blend your images. The Paint Shop Pro (PSP) tools you will use include the Zoom, Flood Fill and Magic Wand tools.

The instructions below were written for PSP Version 5. Where steps are different while using PSP Version 6, these V6 steps are shown in green.

Finally, the steps below show how to perform each task using the PSP menu options. Alternatively, you may wish to use the keyboard shortcuts for some of the tasks - these are displayed in small text - surrounded by [square brackets].
 
Note

Download the files we've used in this tutorialDownload file
This tutorial requires you to use two images to blend.

To download our angel and cloud images:
1.  Click on the "Download file" link to the left.
2.  After downloading this file - unzip it.
3.  Save the two images contained within the zip file
     into your image directory.
4.  Open each image in your PSP workspace.
 
Note

Window | Duplicate the Image menu option.
To ensure that you don't lose the original images - duplicate them.

To duplicate the images:
1.  Click on the original "/tutorial/html/tuteff/clouds.jpg" image.
2.  Select the Window | Duplicate menu option
     - [SHIFT+D].
3.  Save the new file as "clouds2.psp" - [F12].
4.  Close the original "/tutorial/html/tuteff/clouds.jpg" image
     (without saving).
5.  Repeat the above steps using the original "/tutorial/html/tuteff/angel.jpg"
     image, saving your new image as "angel2.psp".
6.  Click on the "angel2.psp" image to make it the
     the active image.
 
Note:

The Magic Wand tool settings.
In this step, using the "angel2.psp" image, you need to change the Magic Wand tool settings to enable us
to select all of the white bits surrounding the angel.

To change the Magic Wand tool settings:
1.  Click on the Magic Wand tool. The system displays
     the Controls dialog box (Tool Controls tab).
2.  Apply the following settings:
     Match mode = RGB Value,
     Tolerance = 15,
     Feather = 1,
     Sample merged checkbox = Unchecked
.

PSP Version 6
1.  Using the Magic Wand tool, click on the Tool
     Options - Magic Wand tool palette.
2.  Apply the following settings:
     Match mode = RGB Value,
     Tolerance = 15,
     Feather = 1,
     Sample merged checkbox = Unchecked
.

 
Note

Magic Wand tool settings
Now you're ready to select all of the white bits
surrounding the angel.

To select all of the white areas:
1.  Using the Magic Wand tool, click once in the
     white area surrounding the angel.
2.  Hold down the shift key.
3.  Keep making more selections until you've
     "selected" every bit of white in the picture.
 
TIP

Zoom Tool
Tip:
Click on the Zoom Tool to get a closer view of your
image - to assist you in selecting every single white bit in the image. If all aren't selected now, they'll stand out badly when you copy and paste the image in the next steps.
 
Note

Selections | Invert menu option.


Selections | Modify | Contract menu option.
Now you'll invert and contract your selection. This
assists in making sure you don't copy any of the white areas (particularly when you've feathered the image)

To invert the selection:
1.  Click on the Selections | Invert menu option
     - [SHIFT+CTRL+I].

To contract the selection:
1.  Click on the Selections | Modify | Contract menu
     option. The system displays the "Contract
     Selection" dialog box.
2.  Use the following setting:
     Number of pixels = 2.
3.  Click on the OK button (to accept this setting).
 
Note

Paste As New Layer menu option

Angel pasted onto the clouds
Next you copy your selection into the clipboard, then paste it as a new layer in the cloud image (to make it the active image).

To copy the angel:
1.  Click on the Edit | Copy menu option - [CTRL+C].

To paste the angel into the "clouds2.psp" image:
1.  Click on the "clouds2.psp" image.
2.  Click on the Edit | Paste | As New Layer
     menu option - [CTRL+L].

Your image should look like that displayed on the left, with the angel sitting on top of the clouds.
 
Note

Angel pasted onto the clouds









Save your image.
Before you commence blending the two images, you
need to adjust the Layer Palette.

To adjust the Layer Palette:
1.  Using the Layer Palette, right-click on the new
     layer (Layer 1).
2.  From the drop-down menu, click on the Properties
     menu option. The system displays the "Layer
     Properties" dialog box.
3.  Rename this layer ANGEL, then click on the [OK]
     button to close this dialog box.
4.  Double click on the Background layer. The system
     displays the "Promote Layer and Edit Properties"
     dialog box.
5.  Rename this layer CLOUDS, then click on the
     OK button to accept this setting.
6.  Click on the ANGEL layer (to make it the
     active layer). Your Layer Palette should now look
     like that shown on the left.
7.  Finally - switch back to the "angel2.psp" image,
     and close this file (its not necessary to save it).
8.  This would also be a good time to save your
     image, renaming it "clouds3.psp" image - [F12].
 
Note

Angel pasted onto the clouds.

Faded angel after adding the mask.
Next you're going to add a mask to the ANGEL layer
in the "clouds3.psp" image.

To add a new mask:
1.  Click on the Masks | New | From Image menu
     option. The system displays the "Add Mask
     From Image" dialog box.
2.  To apply the mask, choose the following mask
     settings:
        Source Window = This Window,
        Create mask from = Source luminance,
        Invert mask data checkbox = Unchecked.

3.  After choosing these settings, click on the [OK]
     button to add the mask.

Notice how your angel appears to be faded now.
You're about to change that.
 
Note

Mask View menu option.



Mask Edit menu option
In this next step, you'll view the new mask, then
activate the mask editing mode.

To view the mask:
1.  Click on the Masks | View Mask menu option
     - [CTRL+ALT+V]. The system displays a reddish
     hue over your image - don't worry about this.

To edit the mask:
1.  Click on the Masks | Edit menu option - [CTRL+K].
 
Note


The Colour Palette
Before setting up a gradient for the mask, you need to change the Foreground and Background colours in the Colour Palette.

To set the Foreground/Background colours:
1.  Click on the Colour Palette.
2.  Select your colours as:
     Foreground = White,
     Background = Black.
 
Note

Flood Fill tool

Control Flood Fill dialog box selections
In this step, while you are in the mask editing mode,
you're going to set up a Linear gradient.

To select Linear Gradient as your fill style:
1.  Using the Flood Fill Tool, click on the Tool
     Controls dialog box (Tool Controls tab).
2.  Choose the following Flood Fill settings:
        Fill style = Linear Gradient,
        Match mode = None,
        Tolerance = 0,
        Opacity = 100%,
        Sample merged checkbox = Unchecked.


The "Controls dialog box (Tool Controls tab) should
look like that shown on the left.

PSP Version 6
1.  Click on the Flood Fill tool.
2.  Click on the Tool Options - Flood Fill tool palette.
3.  Apply the following settings:
     Fill style = Linear Gradient,
     Blend mode = Normal,
     Paper texture = None,
     Match mode = None,
     Opacity = 100%,
     Feather = 1,
     Sample merged checkbox = Unchecked
.

 
Note

Flood Fill Linear Gradient dialog box selections
Now we'll choose the gradient options.

To change the gradient options:
1.  Click on the Options button in the "Controls"
     dialog box (Tool Controls tab). The system
     displays the "Flood Fill Options" dialog box.
2.  Choose the following gradient settings:
        Fill style = Linear Gradient,
        Blend mode = Normal,
        Direction = 180 degrees.

3.  After completing these settings, click on the
     [OK] button. The system returns to the
     "Controls" dialog box (Tool Controls tab).

PSP Version 6
1.  In the "Tool Options Flood Fill" palette, click on the
     Gradient tab, and apply the following gradient
     settings:
     Gradient = Black-White,
     Angle = 0 degrees,
     Repeats = 0
.

 
Note

Layer Palette - with the angel layer active

Layer Palette - with the Enable Layer Mask toggle ON



Masked blended image


Save your image.
In this next step, you're now ready to flood fill
the mask with your Linear gradient. Before doing so, double check that the ANGEL layer is still active, and that the Enable Layer Mask toggle is switched ON.

To flood fill the mask:
1.  Using the Flood Fill tool, click once inside your
     image. The system floods the mask with your
     gradient.
2.  Click on the Masks | View Mask menu option
     again (to turn OFF the mask viewing mode)
     - [CTRL+ALT+V].
3.  Click on the Masks | Edit menu option again
     (to turn OFF the mask editing mode) - [CTRL+K].

As shown in the cutout from the image on the left, you can see the angel is now beautifully blended into the clouds. If you wish, you can finish this tutorial here.

However, we have taken this effect a little further, and blended the CLOUDS layer with a white background layer, which looks pretty spectacular.

4.  This would also be a good time to save your
     image, renaming it "clouds4.psp" image - [F12].
 
Note



layer Palette with WhiteBG Layer at the bottom
Now we'll work with the Layer Palette again.

To add a new layer for the clouds to blend with:
1.  In the Layer Palette, click on the CLOUDS layer.
2.  Click on the Add New Layer icon. The system
     displays the "Layer Properties" dialog box.
3.  Name this new layer WHITEBG, then click on the
     OK button to close this dialog box.
4.  To move the WHITEBG layer down to the bottom
     of the Layer Palette, click on the Layers | Arrange
     | Send to Bottom menu option (or left click on the
     layer name, then - while holding down the left
     mouse-button - drag the layer down so that
     it is below the "clouds" layer).
5.  Make sure the WHITEBG layer is the active layer.
 
Controls/Fill - Solid option. Now you need to flood fill this layer with white.

To flood fill the WHITEBG layer:
1.  Using the Flood Fill tool, click on the "Controls"
     dialog box (Tool Controls tab).
2.  Change the Fill Style to Solid Colour, and leave
     all the other settings as they are.
3.  Click once on your image to fill the WHITEBG
     layer with white.
 
Tip:

Tip:
Unless you have "hidden" the top two layers, you won't see the result of this action. To check that the WHITEBG layer was filled properly - simply hold your mouse over the WHITEBG layer name in the Layer Palette, and the system displays the layer's content (which should be all white).
 
Note:

Blended Image




Faded clouds
Now you'll blend the CLOUDS layer with the WHITEBG
layer, by adding a mask to the CLOUDS layer.

To add a mask to the CLOUDS layer:
1.  Using your Layer Palette, click on the CLOUDS
     layer to activate it.
2.  Click on the Masks | New | From Image menu
     option. The system displays the "Add Mask
     From Image" dialog box.

To apply the mask:
1.  Choose the following mask settings:
        Source Window = This Window,
        Create mask from = Source luminance,
        Invert mask data checkbox = Unchecked.

2.  After choosing these settings, click on the
     [OK] button.
3.  To view the mask, click on the Masks | View
     Mask menu option - [CTRL+ALT+V].
4.  To edit the mask, click on the Masks | Edit
     menu option - [CTRL+K].

Now the clouds appear to be really faded. You're
about to change that.
 
Note


The Colour Palette
Before setting up the gradient for the mask, you need
to check that your Foreground colour is still White,
and that your Background colour is Black.
 
Rectangular Gradient. Next you'll set up a Rectangular gradient.

To set up the rectangular gradient:
1.  In the Control box - Tool Controls tab, select
     the Rectangular Gradient as your Fill Style,
     leaving all other settings as they are.
2.  Click on the Options button - the system displays
     the "Flood Fill Options" dialog box.
3.  Choose the following gradient settings:
     Fill style = Rectangular Gradient
     Blend mode = Normal,
     Vertical = 50%,
     Horizontal = 50%,

4.  After making these selections, click on the
     [OK] button to accept the settings. Your gradient
     should appear black on the outside and white
     on the inside.

PSP Version 6
1.  In the "Tool Options Flood Fill" palette, click on
     the down-arrow beside the Fill Style field, and
     select the Rectangular Gradient option.
2.  Click on Gradient tab, and apply the following
     gradient settings:
     Gradient = Black-White,
     Repeats = 0 degrees,
     Gradient center - Horizontal = 50, Vertical = 50
.

 
Note


Final Image.

Save your image
Last but not least, while still in the mask editing
mode, you'll flood fill the clouds mask with the
rectangular gradient.

To fill the clouds with your rectangular gradient:
1.  Checking that your CLOUDS layer is still active,
     use your Flood Fill tool and click once on your
     image - the system fills your image with the
     rectangular gradient.
2.  Click on Masks | Edit menu option - to
     to turn the mask editing feature off [CTRL+K].
3.  Click on Masks | View Mask menu option to
     turn the mask viewing feature off [CTRL+ALT+V].

The system displays your masked image, with the clouds now fading to white on the outer edges, as
shown in our image on the left. Isn't it beautiful!!!

4.  Finally save your image.
 
Tip Tip:
Another way to give better contrast for a faded image is to merge all layers, duplicate the merged layer, and - on the duplicated layer - change the Layer Blend Mode to Overlay, then reduce the transparency of the duplicate layer to between 20% and 50% - according to however dark you wish the image to appear.

This is the end of the tutorial.