public string LookupFirstValue(Tag tag) { ExifEntry entry = LookupFirst(tag); if (entry != null) { return(entry.Value); } return(null); }
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); }
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); }
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); }
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); }
public ExifEntry GetEntry (Tag tag) { Assemble (); ExifEntry entry = Lookup (tag); if (entry == null) entry = new ExifEntry (this, tag); return entry; }
public bool Contains (ExifEntry entry) { Assemble (); return entries.Contains (entry); }
public bool Contains(ExifEntry entry) { Assemble(); return(entries.Contains(entry)); }