Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
 public void Add(FSpot.IBrowsableItem item)
 {
     Add(item, item.DefaultVersionUri.LocalPath);
 }