Using taglib to display the cover art in a Image box in WPF
I'm making a player and I'm stuck in a apparently simple problem. I need to make the cover art of the song to be displayed in one Image box. I found these two solutions: This: var file = TagLib.File.Create(filename); if (file.Tag.Pictures.Length >= 1) { var bin = (byte[])(file.Tag.Pictures[0].Data.Data); PreviewPictureBox.Image = Image.FromStream(new MemoryStream(bin)).GetThumbnailImage(100, 100, null, IntPtr.Zero); } and this: System.Drawing.Image currentImage = null; // In method onclick of the listbox showing all mp3's TagLib.File f = new TagLib.Mpeg.AudioFile(file); if (f.Tag.Pictures