WIC image viewer using Direct2D sample
This sample demonstrates the use of Windows Imaging Component (WIC) to decode an image file and Direct2D to render the image to the screen.
Requirements
This sample has the following requirements.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum Windows SDK | Windows Software Development Kit (SDK) for Windows 7 |
Downloading the sample
This sample is available at WIC Viewer D2D.
Building the sample
Using Visual Studio (preferred method)
- Open Windows Explorer and navigate to the 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.
Using the command prompt
To build the sample by using a command prompt:
- Open a command prompt window and navigate to the sample directory.
- Type
msbuild WICViewerD2D.sln
Running the sample
After you start the application, load an image file by using the Open command of the File menu.