我使用UltraID3来获取mp3文件的Coverart。无论如何,UltraID3可以对flac文件做同样的事情吗?
或者还有其他lib可以做到这一点吗? 这是我的MP3代码:
UltraID3 myMp3 = new UltraID3();
myMp3.Read(path);
ID3FrameCollection myArtworkCollection =
myMp3.ID3v2Tag.Frames.GetFrames(MultipleInstanceID3v2FrameTypes.ID3v23Picture);
if (myArtworkCollection.Count > 0)
{
ID3v23PictureFrame ra = (ID3v23PictureFrame)myArtworkCollection[0];
(ra.Picture).Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
return true;
}