mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 14:56:31 +01:00
Added a method in BaseApplication to get the logo image
This commit is contained in:
parent
c124672636
commit
ee91096eb0
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user