Save as an Image File Sample
This topic contains the following sections.
- Downloading the Sample
- Building the Sample
This sample shows how to draw an hour glass and text and shows how to save the result into an image file that looks like the following screen shot.
|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|
This sample is available in the following locations.
|Windows SDK||\Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\Direct2D\SaveAsImageFileSample|
|Code Gallery||Download from MSDN Code Gallery|
- Open the Command Prompt window and navigate to the sample directory.
- Open Windows Explorer and navigate 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.
Build date: 1/22/2012