<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<!-- Need to translate the title. -->
<TITLE>Using Mask Layers - Intermediate</TITLE>
<!-- Do NOT edit from here... -->
<SCRIPT LANGUAGE="JavaScript">
<!--

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->

<!--

//  The "refresh" function implementations are identical
//  to our regular "JavaScript-Refresh" example.  The only
//  difference from our JavaScript Refresh example is
//  we do not have a doLoad function that starts our
//  refresh timer (since we use a refresh button).

var sURL = unescape(window.location.pathname);

function refresh()
{
    window.location.href = sURL;
}

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
//-->
</SCRIPT>
<!-- ... to here. -->

<!-- This is the link to the Cascading Style Sheet (CSS) file. -->
<LINK REL="stylesheet" HREF="css/bpstyles.css" TYPE="text/css">
</HEAD>
<body TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" BGCOLOR="#FFFFFF">
<TABLE WIDTH="94%" BORDER="0" ALIGN="CENTER">
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE  -->
		<TD ALIGN="LEFT" CLASS="header1">Using Mask Layers - Intermediate</TD>
	</TR>
	<TR>
		<TD><HR WIDTH="100%" ALIGN="CENTER"></TD>
	</TR>
	<TR>
		<!-- STEP 1 STEP 1 STEP 1 STEP 1 STEP 1 STEP 1 STEP 1  -->
		<TD CLASS="boldbody">Step 1 - Display Layers palette, open sample photos</TD>
	</TR>
	<TR>
		<TD CLASS="body">If it isn't already displayed, display the Layers palette, and then open the photos "Sunset foreground.jpg" and "Sunset sky.jpg" residing in Paint Shop Pro 9's Sample Images folder. You'll be using a Mask Layer to combine the better foreground with the better sky.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR> 
		<!-- STEP 2 STEP 2 STEP 2 STEP 2 STEP 2 STEP 2 STEP 2   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 2 - Copy the foreground photo to the clipboard</TD>
	</TR>
	<TR>
		<TD CLASS="body">Making sure the "Sunset foreground.jpg" photo is the active image, press Ctrl + C (or choose Edit > Copy) to copy it to the clipboard.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR> 
		<!-- STEP 3 STEP 3 STEP 3 STEP 3 STEP 3 STEP 3 STEP 3   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 3 - Paste as New Layer</TD>
	</TR>
	<TR>
		<TD CLASS="body">Now make the "Sunset sky.jpg" photo the active image, and then press Ctrl + L (or choose Edit > Paste > Paste as New Layer). Notice in the Layers palette that the "foreground" photo resides on a new Raster layer, and this is the active layer.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 4 STEP 4 STEP 4 STEP 4 STEP 4 STEP 4 STEP 4   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 4 - Duplicate the new layer</TD>
	</TR>
	<TR>
		<TD CLASS="body">Making sure the new Raster layer is the active layer, duplicate this layer by choosing Layers > Duplicate. This will create a layer called Copy of Raster 1, and it will be the active layer. You'll then essentially use this layer to make your mask.</TD>
	</TR>
	<TR>
	<TD CLASS="body"><A HREF="#" onClick="MM_goToURL('parent','Scripts/DupeRasterLayer.PspScript');return document.MM_returnValue"><IMG SRC="images/DupeLayer_icon.gif" WIDTH="16" HEIGHT="16" VALIGN="baseline" BORDER="0"> Perform this step for me.</A></TD>
        <td></td>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 5 STEP 5 STEP 5 STEP 5 STEP 5 STEP 5 STEP 5   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 5 - Adjust the Saturation level</TD>
	</TR>
	<TR>
		<TD CLASS="body">With the duplicated layer active, choose Adjust > Hue and Saturation > Hue/Saturation/Lightness (or press Shift + H). In the Hue/Saturation/Lightness dialog, leave the Hue and Lightness values at 0, but set the Saturation to -100 (negative 100). This will  make a grayscale version of the layer.</TD>
	</TR>
	<TR>
	<TD CLASS="body"><A HREF="#" onClick="MM_goToURL('parent','Scripts/SatNeg100.PspScript');return document.MM_returnValue"><IMG SRC="images/HSL_icon.gif" WIDTH="16" HEIGHT="16" VALIGN="baseline" BORDER="0"> Perform this step for me.</A></TD>
        <td></td>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 6 STEP 6 STEP 6 STEP 6 STEP 6 STEP 6 STEP 6   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 6 - Adjust the Brightness and Contrast</TD>
	</TR>
	<TR>
		<TD CLASS="body">With the same layer active, choose Adjust > Brightness and Contrast > Brightness/Contrast (or press Shift + B). In the Brightness/Contrast dialog, set the Brightness value to -10 (negative 10) or so, and set Contrast to around 60, and then click OK. This should make the layer's pixels almost entirely all black or all white. With Masks, black is used to hide the layer's pixels, white is used to show the pixels, and depending on their lightness, gray will partially hide pixels.</TD>
	</TR>
	<TR>
	<TD CLASS="body"><A HREF="#" onClick="MM_goToURL('parent','Scripts/BrightContrast.PspScript');return document.MM_returnValue"><IMG SRC="images/BrightContrast_icon.gif" WIDTH="16" HEIGHT="16" VALIGN="baseline" BORDER="0"> Open this dialog for me.</A></TD>
        <td></td>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 7 STEP 7 STEP 7 STEP 7 STEP 7 STEP 7 STEP 7   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 7 - Choose the Raster 1 layer</TD>
	</TR>
	<TR>
		<TD CLASS="body">On the Layers palette, make Raster 1 (original foreground image pasted as a new layer) the active layer.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 8 STEP 8 STEP 8 STEP 8 STEP 8 STEP 8 STEP 8   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 8 - Create the Mask Layer group</TD>
	</TR></TD>
	</TR>
	<TR>
		<TD CLASS="body">Choose Layers > New Mask Layer > From Image. In the Add Mask From Image dialog, choose the Source Luminance option, and mark the Invert Mask Data check box, and then click OK. This will create a Mask Layer group, using the duplicated layer as the actual mask.</TD>
	</TR>
	<TR>
	<TD CLASS="body"><A HREF="#" onClick="MM_goToURL('parent','Scripts/MaskFromImage.PspScript');return document.MM_returnValue"><IMG SRC="images/MaskFromImage_icon.gif" WIDTH="16" HEIGHT="16" VALIGN="baseline" BORDER="0"> Open this dialog for me.</A></TD>
        <td></td>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 9 STEP 9 STEP 9 STEP 9 STEP 9 STEP 9 STEP 9   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 9 - Toggle off duplicated layer's visibility</TD>
	</TR>
	<TR>
		<TD CLASS="body">On the Layers palette, toggle off the duplicated layer's (labeled Copy of Raster 1) visibility -- click its Visibility Toggle icon so a red X appears over it. This will reveal the overall image, where the better sky is now seamlessly combined with the better foreground.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- Notes and Tips Notes and Tips Notes and Tips -->
		<TD VALIGN="TOP" ALIGN="LEFT" CLASS="boldbody">Notes and Tips:</TD>
	</TR>
	<TR>
		<TD>
			<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="2">
				<TR>
					<TD VALIGN="TOP"><IMG SRC="images/bullet.gif" WIDTH="5" HEIGHT="9" BORDER="0"></TD>
					<TD VALIGN="TOP" CLASS="body">The two photos used in this Quick Guide were taken with a digital camera attached to a tripod, and the tripod was kept in the same position for both photos, allowing them to be lined up perfectly. The "foreground" photo was purposely overexposed, and the "sky" photo was purposely underexposed. You can do this if your digital camera has an "Exposure Bracketing" feature.</TD>
				</TR>
				<TR>
					<TD VALIGN="TOP"><IMG SRC="images/bullet.gif" WIDTH="5" HEIGHT="9" BORDER="0"></TD>
					<TD VALIGN="TOP" CLASS="body">If you plan on attempting a similar project with lined-up photos like these, try recording the steps above into a single Script which you could apply to the photos.</TD>
				</TR>
				<TR>
					<TD VALIGN="TOP"><IMG SRC="images/bullet.gif" WIDTH="5" HEIGHT="9" BORDER="0"></TD>
					<TD VALIGN="TOP" CLASS="body">For more information on the Mask feature, refer to the Help system or the User Guide.</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
   		<!-- Horizontal Rule Horizontal Rule Horizontal Rule Horizontal Rule Horizontal Rule    -->
    	<TD><HR WIDTH="100%"></TD>
	</TR>
	<TR>
		<TD ALIGN="LEFT" CLASS="boldbody">Learn More:</TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="../Using Mask Layers - Basic/index.htm"><IMG SRC="images/quickguide.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A> <A HREF="../Using Mask Layers - Basic/index.htm">Using Mask Layers - Basic</A></TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="../../Graphics/Erase an image background/index.htm"><IMG SRC="images/quickguide.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A> <A HREF="../../Graphics/Erase an image background/index.htm">Erase an image background</A></TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="../Create depth of field/index.htm"><IMG SRC="images/quickguide.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A> <A HREF="../Create depth of field/index.htm">Create depth of field</A></TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
</TABLE>
</body>
</HTML>
