Opacity Masks Example

This topic contains the following sections.

Description

This sample shows how to create opacity masks from different types of brushes. It produces the following output.

 

The effects of different opacity masks.

 

View the Example Files

File
DeclareDPIAware.manifest
DemoApp.h
DemoApp.cpp
OpacityMasksExample.vcproj
resource.rc

 

Requirements

Minimum supported clientWindows 7
Windows SDKWindows Software Development Kit (SDK) for Windows 7

 

Downloading the Sample

This sample is available in the following locations.

LocationPath/URL
Code GalleryDownload from MSDN Code Gallery

 

Building the Sample

Building the Sample Using the Command Prompt

  1. Open the Command Prompt window and navigate to the sample directory.
  2. Type msbuild OpacityMasksExample.sln.

Building the Sample Using Visual Studio 2008 (Preferred Method)

  1. Open Windows Explorer and navigate to the sample directory.
  2. Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
  3. 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: 11/15/2009

Tags :


Page view tracker