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 topic contains the following sections.

Requirements

This sample has the following requirements:

Minimum supported clientWindows 7
Windows SDKWindows Software Development Kit (SDK) for Windows 7

 

Downloading the Sample

This sample is available in the following locations:

LocationPath/URL
Windows SDK\Program Files\Microsoft SDKs\Windows\v7.0\Samples\multimedia\wic\WICViewerD2D\
Code GalleryWindows Imaging Component Animated GIF Win32 Sample

 

Building 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.

Using the Command Prompt

To build the sample by using a command prompt:

  1. Open the command prompt and navigate to the sample directory.
  2. Type msbuild WICAnimatedGif.sln

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.

See Also

Microsoft Windows Imaging Codec

Programming Guide

References

 

 

Show: