Пример #1
0
        public string LookupFirstValue(Tag tag)
        {
            ExifEntry entry = LookupFirst(tag);

            if (entry != null)
            {
                return(entry.Value);
            }
            return(null);
        }
Пример #2
0
        public void Remove(ExifEntry entry)
        {
            Assemble();

            entries.Remove(entry);
            // This call can recurse into this function but it protects
            // itself by checking if it the content already contains the entry
            entry.SetParent(null);
            exif_content_remove_entry(this.handle, entry.Handle);
        }
Пример #3
0
        public ExifEntry GetEntry(Tag tag)
        {
            Assemble();

            ExifEntry entry = Lookup(tag);

            if (entry == null)
            {
                entry = new ExifEntry(this, tag);
            }

            return(entry);
        }
    public static PixbufOrientation GetOrientation(Exif.ExifData data)
    {
        PixbufOrientation orientation = PixbufOrientation.TopLeft;

        Exif.ExifEntry e = data.GetContents(Exif.Ifd.Zero).Lookup(Exif.Tag.Orientation);

        if (e != null)
        {
            ushort [] value = e.GetDataUShort();
            orientation = (PixbufOrientation)value [0];
        }

        return(orientation);
    }
Пример #5
0
        public ExifEntry LookupFirst(Tag tag)
        {
            Assemble();
            foreach (ExifContent content in ifds)
            {
                if (content == null)
                {
                    continue;
                }

                ExifEntry entry = content.Lookup(tag);
                if (entry != null)
                {
                    return(entry);
                }
            }
            return(null);
        }
Пример #6
0
		public void Remove (ExifEntry entry)
		{
			Assemble ();
			
			entries.Remove (entry);
			// This call can recurse into this function but it protects
			// itself by checking if it the content already contains the entry
			entry.SetParent (null);
			exif_content_remove_entry (this.handle, entry.Handle);
		}
Пример #7
0
		public ExifEntry GetEntry (Tag tag)
		{
			Assemble ();
			
			ExifEntry entry = Lookup (tag);
			if (entry == null)
				entry = new ExifEntry (this, tag);

			return entry;
		}
Пример #8
0
		public bool Contains (ExifEntry entry)
		{
			Assemble ();

			return entries.Contains (entry);
		}
Пример #9
0
        public bool Contains(ExifEntry entry)
        {
            Assemble();

            return(entries.Contains(entry));
        }