Opacity Masks Example
This topic contains the following sections.
- Description
- View the Example Files
- Requirements
- Downloading the Sample
- Building the Sample
- Building the Sample Using the Command Prompt
- Building the Sample Using Visual Studio 2008 (Preferred Method)
Description
This sample shows how to create opacity masks from different kinds of brushes. It produces the output shown in the following illustrations.
View the Example Files
File |
DeclareDPIAware.manifest |
DemoApp.h |
DemoApp.cpp |
OpacityMasksExample.vcproj |
resource.rc |
Requirements
Minimum supported client | Windows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista |
Minimum supported server | Windows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008 |
Windows SDK | Windows Software Development Kit (SDK) for Windows 7 |
Downloading the Sample
This sample is available in the following locations.
Location | Path/URL |
---|---|
Code Gallery | Download from MSDN Code Gallery |
Building the Sample
Building the Sample Using the Command Prompt
- Open the Command Prompt window and browse to the sample directory.
- Type
msbuild OpacityMasksExample.sln
.
Building the Sample Using Visual Studio 2008 (Preferred Method)
- Open Windows Explorer and browse to the sample directory.
- Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
- In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.
Send comments about this topic to Microsoft
Build date: 1/22/2012