Exemple #1
0
 public void Display(AlbumArt art)
 {
     try
     {
         pbAlbumArt.Image = new Bitmap(new MemoryStream(art.ImageData));
     }
     catch { }
 }
 public override void DoDisplay(AlbumArt albumArt)
 {
     if (_form.InvokeRequired)
     {
         _form.Invoke(new DisplayArtDelegate(DoDisplay), albumArt);
         return;
     }
     _form.Display(albumArt);
 }
Exemple #3
0
 public override void DoDisplay(AlbumArt albumArt)
 {
     _nowPlaying.DisplayAlbumArt(albumArt);
 }
Exemple #4
0
 private void DisplayAlbumArt(AlbumArt albumArt)
 {
     Logger.Debug("Displaying album art");
     if (_lastSong != null && albumArt.OriginalMetadata.Title == _lastSong.Title)
         Application.Invoke(delegate
     {
         lastArt = albumArt != null ? albumArt.ImageData : null;
         var size = Art.Allocation;
         DisplayAlbumArt(size.Width, size.Height);
     });
 }