Пример #1
0
        /// <exception cref="System.IO.IOException"/>
        private void SetInt32([NotNull] Com.Drew.Metadata.Directory directory, int tagType, [NotNull] RandomAccessReader reader)
        {
            int i = reader.GetInt32(tagType);

            if (i != 0)
            {
                directory.SetInt(tagType, i);
            }
        }
Пример #2
0
 public virtual void TestSetSameTagMultipleTimesOverwritesValue()
 {
     _directory.SetInt(ExifSubIFDDirectory.TagAperture, 1);
     _directory.SetInt(ExifSubIFDDirectory.TagAperture, 2);
     Sharpen.Tests.AreEqual(2, _directory.GetInt(ExifSubIFDDirectory.TagAperture));
 }