public int Add(FSpot.IBrowsableItem item, string path) { if (item == null) { Console.WriteLine("NO PHOTO"); } return(gallery.AddItem(this, path, Path.GetFileName(item.DefaultVersionUri.LocalPath), item.Name, item.Description, true)); }
private static FSpot.Xmp.XmpFile UpdateXmp(FSpot.IBrowsableItem item, FSpot.Xmp.XmpFile xmp) { if (xmp == null) { xmp = new FSpot.Xmp.XmpFile(); } Tag [] tags = item.Tags; string [] names = new string [tags.Length]; for (int i = 0; i < tags.Length; i++) { names [i] = tags [i].Name; } xmp.Store.Update("dc:subject", "rdf:Bag", names); xmp.Dump(); return(xmp); }
public void Add(FSpot.IBrowsableItem item) { Add(item, item.DefaultVersionUri.LocalPath); }