Added the WPF funcitonality

This commit is contained in:
2021-09-23 19:20:26 +12:00
parent a0af5286f8
commit ea5e564352
3 changed files with 22 additions and 26 deletions
+2 -8
View File
@@ -36,7 +36,7 @@ namespace RBG_Server.WPF
}
/// <summary>
/// Browse for file button
/// Browse for game board file button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
@@ -384,14 +384,8 @@ namespace RBG_Server.WPF
{
try
{
/*
// Must write-out the stream to
MediaElement gifMedia = new();
gifMedia.LoadedBehavior = MediaState.Play;
gifMedia.Source = new Uri(item.Key);
_ = LoadedSprites.Children.Add(gifMedia);
*/
Image spriteImage = new();
// Generate the animatedBitmap
RBG.Helpers.AnimatedBitmapImage animatedBitmap = new(new MemoryStream(item.Value, false), spriteImage, Application.Current.Dispatcher);
_ = LoadedSprites.Children.Add(spriteImage);
}