WIC Image Viewer Using GDI Sample
This sample demonstrates the use of Windows Imaging Component (WIC) to decode an image file and Windows Graphics Device Interface (GDI) to render the image to the screen.
This topic contains the following sections.
- Downloading the Sample
- Building the Sample
- Running the Sample
- See Also
This sample has the following requirements.
|Minimum supported client||Windows 7|
|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\wic\WICViewerGDI\|
- 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.
To build the sample by using a command prompt:
- Open a command prompt window and navigate to the sample directory.
After you start the application, load an image file by using the Open command of the File menu.