Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.88 KB

-wic-sample-animated-gif.md

File metadata and controls

56 lines (35 loc) · 1.88 KB
description ms.assetid title ms.topic ms.date ms.custom
This sample demonstrates decoding various frames in a GIF file, reading appropriate metadata for each frame, composing frames, and rendering the animation with Direct2D.
d71c66b5-d37c-4c8a-bfd7-b97c69c3b8e9
WIC Animated Gif Sample
article
03/19/2021
project-verbatim

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.

Requirements

This sample has the following requirements.

Requirement Value
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)

  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

Reference

Direct2D

Samples and code examples