Created
March 1, 2021 10:07
-
-
Save GroupDocsGists/bf1680841cb8049c1d1162e8010113c9 to your computer and use it in GitHub Desktop.
Render APNG and GIF Animations to HTML Web Pages with Play and Pause Option in .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Render APNG To HTML with Play and Pause Option | |
using (Viewer viewer = new Viewer("animation.apng")) | |
{ | |
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("Web-Page-with-APNG.html"); | |
viewer.View(options); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Render GIF To HTML with Play and Pause Option | |
using (Viewer viewer = new Viewer("animation.gif")) | |
{ | |
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("Web-Page-with-gif.html"); | |
viewer.View(options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment