Main >> Personal Interests >> Personal Home Pages

 
Masks part 1

Remove the phantom from the Mask!

Masks Part 1

Today masks are about making portions of images transparent.  Many of yesterday's masking jobs (stuff we learned in older applications) now gets done with selection tools.  Today's masks are all about making portions of your image transparent to varying degrees.

Granted, learning masks doesn't always feel intuitive or comfortable.  Those stinking Menu commands barely hint at what the heck they actually do.  Initially masks can confuse us, annoy us and scare those body fluids right out of us.  But it's all worth it once we get past the initial hump. (that hump is a speed bump and not a mountain ... just slow down)

Can I do serious graphics without knowing masks?
Can we cook Thanksgiving Dinner on a one burner hot plate?
Sure, but a four burner stove & double oven is probably better.

Discovering the hidden powers and values of masks
isn't a sudden 'light bulb' kind of moment
it's a gradual realization.

If you get a little tense or frustrated, take a break to go read an irreverent tutorial for
grasping techno text
and then come right back here and leisurely go through this again. 

If you've been skirting about and avoiding masks cause they never made any sense,
but you really want to get this darn thing figured out once and for all,
now to remove the phantom from the MASK_

 

 If you have trouble understanding Masks, take some comfort in knowledge that you are not alone.

Look at the Lettering in the image to note how it fades away at both ends. This was a simple operation using the PSP Mask editing feature and a layer containing a clan MacDonald plaid.

In mask editing for the lettering layer, I made a selection of one side of the image, filled it with a black to white gradient, moved the selection and reversed the gradient, flood filled that side too and was done.

(Show me how!)

Here it's got a black border incased in a box, but this method could very dramatically just fade off and disappear right into the background of your webpage.

Use masks to:

  • Set some areas to total transparency (meaning invisible)
  • Set areas to no transparency (it looks just the same)
  • Go for various levels of transparency within the same image
  • You can even set up gradients of transparency! (very beneficial)

    Note: As the mask feature is one of the advanced features of PSP, some basic skills with with PSP are required. You should have basic knowledge of Layers, using the Foreground/Background color palette selections, and use of the paintbrush. If any of these items are causing you trouble, any of the fine people in the newsgroup news:comp.graphics.apps.paint-shop-pro can supply answers.

Let's try a hands-on application


Click here to download the zipped tutorial image file

or create a new image (16.7 m colors)
with a blue background layer.

Open a new layer and squirt some fish tubes onto that empty new layer. The items aren't important, just get three different items in the image that can be masked.

(Why the layers and hide one? Because I'm used to drawing images above a background. I find it most natural to do a background, then hide it and do the foreground. You're welcome to do all of your work on the background layer if you desire.)

Turn off the visibility on the background layer. (Not required, but it helps to only see the layer that is being controlled by the mask)

 

1 Menu >Masks >New >Show All  (Have your layer palette open and visible)
PSP 5 the layer name now shows an asterisk designating it has a active mask.
PSP 6 shows a mask icon (also a thumbnail of mask edits when you mouse over it)

2 Mask > Edit  (Let's edit this mask to make it do what we want)
a. make some areas semi transparent (see through)
b. some fully transparent (invisible)
c. one with gr
adient transparency (fading off in a direction)

Wait a minute, if I start with SHOW ALL, I don't see anything changed in my image and if I started with HIDE ALL I still don't see anything. How can I edit a mask if I can't even see it?

3 Menu >Mask >View Mask

Make certain Edit and View Mask are both checked so we can edit our mask
and can also see where we're working.

Checking View Mask is an insurance policy for confirming that you actually changed the image transparency.  All image transparency changes must appear somewhere between ruby to pink as a see through indicator.  If it looks transparent but isn't some shade of red to pink, that's layer transparency (a completely different animal) and you've gotten detoured down the wrong road with the wrong kind of transparency.

Go ahead, paint some black on your image to confirm a red checkerboard is really there. (and then undo it) The more you see of the red color over your transparency checkerboard the less you see of your image and visa versa.

3 Select paintbrush Click the foreground color to see your palette has become 256 levels of gray.  This means we're now working with 256 levels of transparency.
Each of those 256 shades from black to white colors represents a specific level (or degree) of transparency.

Black blackens out the image to full transparency (invisible) so you will be painting black on images whenever you want something invisible.  All the normal paintbrush tools will work.

I made a selection over the goldfish and painted with black over half of the selection. I like to use selections so I need not be careful painting. If you have a steady hand, you may want to do it freehand with no selection.

Hey, when I paint black, it goes to a red checkerboard and no image!
The checkerboard is my see-though image indicating that I'm getting some degree of transparency.  Go ahead and paint the area you want fully transparent (invisible) with black.

 

Now select a medium gray (index 127) and paint an area to be semi-transparent. (I made a freehand selection around the fish to keep the semi transparency inside that specific area. This is also a good place to note that any of the PSP tools that operate with gray scale will work on the mask. This includes filters.)

Notice the red of the mask is subdued and we can see the original image although it's become semi-transparent.

 

Make a freehand selection over another area and then use the Fill tool to fill it with a normal white to black gradient.

 

 

Keep in mind that we are now painting 256 level gray scale.
PSP6 tip
You can mouseover the the mask icon on your palette
to see your "painting for transparency" edits.

Click the View Mask and Mask Edit to off, and turn the Background view on.
Our fish are now done.  We now have the choice to leave the mask open so new information added to the layer would also get it's transparency controlled too ... or we can Menu > Mask >Delete

Let's merge the transparency into the image, so go ahead and hit:  Menu >Mask >Delete
Calm down, this is the normal procedure, even if we want to keep the effects we just added.

We can choose to merge the current edited mask with the layer, or to discard the mask totally (A-bomb the mess I made, so I can start over.)  So if you like your results say merge it, if not say delete it and start over again.

There are other things that can be done, such as saving the mask while it's open to either the hard drive or the Alpha Channel, edit the mask as a selection, etc. Once you are comfortable with masks those concepts easily fall into place.

What can we do with masks?


Well, I've seen ships with a mask applied so that they appear to be coming out of a fog bank. Picture frames that can be loaded, simple colors painted into an open mask to create flowers around the frame. People faded in a picture to make them look like phantoms.  Two or images overlapped and blended like magic.

Now start back at the top and slowly go through the whole thing again.
As you go along ... note why each step lists the things it does.

Return to the main page