WIC animated GIF sample
This sample demonstrates decoding various frames in a GIF file, reading appropriate metadata for each frame, composing frames, and rendering the animation with Direct2D.
This sample has the following requirements.
|Minimum supported client||Windows 7|
|Minimum Windows SDK||Windows Software Development Kit (SDK) for Windows 7|
Downloading the sample
This sample is available at WIC animated GIF.
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 the command prompt and navigate to the sample directory.
Running the sample
After the application is launched, load an image file by using the Open command of the File menu. Window resizing is supported.