Added a method in BaseApplication to get the logo image

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-25 17:08:27 -04:00
parent c124672636
commit ee91096eb0
4 changed files with 21 additions and 2 deletions

View File

@@ -1,9 +1,13 @@
using System;
using System.IO;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using MediaBrowser.Common.Kernel;
using MediaBrowser.Common.Logging;
using MediaBrowser.Model.Progress;
using System.Reflection;
namespace MediaBrowser.Common.UI
{
@@ -67,5 +71,18 @@ namespace MediaBrowser.Common.UI
Kernel.Dispose();
}
public BitmapImage GetLogoImage()
{
BitmapImage bitmap = new BitmapImage();
bitmap.CacheOption = BitmapCacheOption.Default;
bitmap.BeginInit();
bitmap.StreamSource = Assembly.GetExecutingAssembly().GetManifestResourceStream("MediaBrowser.Common.Resources.mblogo.png");
bitmap.EndInit();
return bitmap;
}
}
}