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); }
public override void DoDisplay(AlbumArt albumArt) { _nowPlaying.DisplayAlbumArt(albumArt); }
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); }); }