40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
Sample Name
|
|
WIC Viewer D2D
|
|
|
|
|
|
Demonstrates
|
|
This code sample shows a Windows application using WIC to decode an image file and D2D to render the image to the screen.
|
|
|
|
Languages
|
|
Sample Language Implementations
|
|
===============================
|
|
This sample is available in the following language implementations:
|
|
C++
|
|
|
|
|
|
Files
|
|
Resource.h: Header file that defines the identifiers for resources
|
|
WICViewerD2D.h: Header file that declares application class DemoApp interface
|
|
WICViewerD2D.rc: Resource file
|
|
WICViewerD2D.cpp: Implementation of the application class interface
|
|
WICViewerD2D.vcproj: Visual Studio 2008 project file
|
|
WICViewerD2D.sln: Visual Studio solution file
|
|
|
|
Prerequisites
|
|
N/A
|
|
|
|
|
|
Building the Sample
|
|
To build the sample using the command prompt:
|
|
=============================================
|
|
1. Open the Command Prompt window and navigate to the directory.
|
|
2. Type msbuild WICViewerD2D.sln.
|
|
|
|
To build the sample using Visual Studio 2008 (preferred method):
|
|
================================================
|
|
1. Open Windows Explorer and navigate to the 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.
|
|
|
|
Running the Sample
|
|
After the application is launched, load an image file through file open menu. Window resizing is supported. |