WIC Progressive Decoding Sample
This sample demonstrates the use of Windows Imaging Component (WIC) to decode an image that is encoded with progressive levels. This sample uses Direct2D to render the different progressive levels to the screen.
This topic contains the following sections.
Requirements
This sample has the following requirements.
| Minimum supported client | Windows 7 |
|---|---|
| Windows SDK | Windows Software Development Kit (SDK) for Windows 7 |
Downloading the Sample
This sample is available in the following locations.
| Location | Path/URL |
|---|---|
| Windows SDK | \Program Files\Microsoft SDKs\Windows\v7.0\Samples\multimedia\wic\ProgressiveDecoding\ (Download the SDK at Windows SDK.) |
| Code Gallery | Windows Imaging Component Progressive Decode Win32 Sample |
Building the Sample
Using Visual Studio 2008 (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 using the command prompt:
- Open the command prompt and navigate to the sample directory.
- Type
msbuild WICProgressiveDecoding.sln
Running the Sample
After the application is launched, load an image file through file open menu. On loading, the default progressive level is set to 0. The user can navigate to different progressive levels either through menu or Up/Down key. The current progressive level text is displayed on the main window status bar. Window resizing is supported.
See Also
Microsoft Windows Imaging Codec