I am wanting to display the album artwork of a song (accessed via the taglib-sharp library) within a Windows Forms picture box. The problem I'm running into is that the taglib-library returns an image of type TagLib.IPicture
whereas the picture box requires an object of type System.Drawing.Image
.
I have scoured the internet for many hours now, looking for a way to convert from an IPicture
to Image
, but to no avail. The best lead I have is this: http://msdn.microsoft.com/en-us/library/system.windows.forms.axhost.getpicturefromipicture.aspx, but I have yet to see a successful example of how to implement this.
Any help as to how to convert between these two types would be much appreciated. Note: IPicture
is not analogous to IPictureDisp
in this case.