2009-11-23 87 views

回答

4

FotoFly在CodePlex上提供的是一個C#庫,它支持Windows Live Faces,GPS,關鍵字等等,就像你在問。使用FotoFly做你想做什麼看http://fotofly.codeplex.com/

只是一個例子:

JpgPhoto photo = new JpgPhoto(@"c:\temp\file.jpg"); 
    photo.ReadMetadata(); 

    photo.Metadata.RegionInfo.Regions.Clear(); 

    XmpRegion xmp = new XmpRegion(); 
    xmp.PersonDisplayName = "esac"; 
    xmp.RectangleString = "0.11, 0.25, 0.37, 0.49"; 

    photo.Metadata.RegionInfo.Regions.Add(xmp); 
    photo.WriteMetadata(); 

它還支持Exif,IPTC,XMP,GPS等。

+0

尼斯圖書館,他們應該把它放在NuGet上。 – 2012-10-15 18:24:26

0

WPF有BitmapMetadata,它支持更新我假定Windows Live照片庫使用的EXIF信息。

another question其中有關於BitmapMetadata和由WLPG使用的元數據的詳細信息。

0

我不知道任何庫,但我想起了this tool將Picasa面部標記轉換爲Windows Live照片庫格式。

我猜這個工具的作者是炮擊運行Exif Tool。也許它可能指向一種完成工作的可能方式。

0

嘗試taglib#,圖片的元數據現在被添加,請參閱支持的matrix

+0

現在看起來很有趣... – Svish 2009-11-24 15:10:36