Exemplo n.º 1
0
 public virtual void TestSetAndGetMultipleTagsInSingleDirectory()
 {
     _directory.SetString(ExifSubIFDDirectory.TagAperture, "TAG_APERTURE");
     _directory.SetString(ExifSubIFDDirectory.TagBatteryLevel, "TAG_BATTERY_LEVEL");
     Sharpen.Tests.AreEqual("TAG_APERTURE", _directory.GetString(ExifSubIFDDirectory.TagAperture));
     Sharpen.Tests.AreEqual("TAG_BATTERY_LEVEL", _directory.GetString(ExifSubIFDDirectory.TagBatteryLevel));
 }
Exemplo n.º 2
0
        /// <exception cref="System.IO.IOException"/>
        private void Set4ByteString([NotNull] Com.Drew.Metadata.Directory directory, int tagType, [NotNull] RandomAccessReader reader)
        {
            int i = reader.GetInt32(tagType);

            if (i != 0)
            {
                directory.SetString(tagType, GetStringFromInt32(i));
            }
        }