Example #1
0
        public string LookupFirstValue(Tag tag)
        {
            ExifEntry entry = LookupFirst(tag);

            if (entry != null)
            {
                return(entry.Value);
            }
            return(null);
        }
Example #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);
        }
Example #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);
    }
Example #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);
        }
Example #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);
		}
Example #7
0
		public ExifEntry GetEntry (Tag tag)
		{
			Assemble ();
			
			ExifEntry entry = Lookup (tag);
			if (entry == null)
				entry = new ExifEntry (this, tag);

			return entry;
		}
Example #8
0
		public bool Contains (ExifEntry entry)
		{
			Assemble ();

			return entries.Contains (entry);
		}
Example #9
0
        public bool Contains(ExifEntry entry)
        {
            Assemble();

            return(entries.Contains(entry));
        }