Created
February 10, 2020 15:39
-
-
Save jz5/7f2ca2421002c2ae299422841ad6be34 to your computer and use it in GitHub Desktop.
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
var apng = new APNG("a.png"); | |
if (apng.IsSimplePNG) | |
PngImage.Source = BitmapFrame.Create( | |
apng.DefaultImage.GetStream(), BitmapCreateOptions.None, BitmapCacheOption.OnLoad); | |
else | |
apng.ToAnimation().CreateStoryboardFor(PngImage).Begin(PngImage); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment