Esempio n. 1
0
 public ExifSignedRationalArray(ExifTag <SignedRational[]> tag)
     : base(tag)
 {
 }
Esempio n. 2
0
 public ExifLong(ExifTag <uint> tag)
     : base(tag)
 {
 }
Esempio n. 3
0
 internal ExifSignedRational(ExifTag <SignedRational> tag)
     : base(tag)
 {
 }
Esempio n. 4
0
 public ExifShortArray(ExifTag <ushort[]> tag)
     : base(tag)
 {
 }
 protected ExifArrayValue(ExifTag <TValueType[]> tag)
     : base(tag)
 {
 }
Esempio n. 6
0
 public ExifString(ExifTag <string> tag)
     : base(tag)
 {
 }
Esempio n. 7
0
 public ExifShort(ExifTag <ushort> tag)
     : base(tag)
 {
 }
Esempio n. 8
0
 public ExifByteArray(ExifTag <byte[]> tag, ExifDataType dataType)
     : base(tag) => this.DataType = dataType;
Esempio n. 9
0
        private static IExifValue GetOffsetValue(List <IExifValue> ifdValues, List <IExifValue> values, ExifTag offset)
        {
            int index = -1;

            for (int i = 0; i < ifdValues.Count; i++)
            {
                if (ifdValues[i].Tag == offset)
                {
                    index = i;
                }
            }

            if (values.Count > 0)
            {
                if (index != -1)
                {
                    return(ifdValues[index]);
                }

                ExifValue result = ExifValues.Create(offset);
                ifdValues.Add(result);

                return(result);
            }
            else if (index != -1)
            {
                ifdValues.RemoveAt(index);
            }

            return(null);
        }
Esempio n. 10
0
 public ExifDouble(ExifTag <double> tag)
     : base(tag)
 {
 }
Esempio n. 11
0
 public ExifRationalArray(ExifTag <Rational[]> tag)
     : base(tag)
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Sets the value of the specified tag.
 /// </summary>
 /// <param name="tag">The tag of the exif value.</param>
 /// <param name="value">The value.</param>
 /// <typeparam name="TValueType">The data type of the tag.</typeparam>
 public void SetValue <TValueType>(ExifTag <TValueType> tag, TValueType value)
 => this.SetValueInternal(tag, value);
Esempio n. 13
0
        /// <summary>
        /// Returns the value with the specified tag.
        /// </summary>
        /// <param name="tag">The tag of the exif value.</param>
        /// <returns>The value with the specified tag.</returns>
        /// <typeparam name="TValueType">The data type of the tag.</typeparam>
        public IExifValue <TValueType> GetValue <TValueType>(ExifTag <TValueType> tag)
        {
            IExifValue value = this.GetValueInternal(tag);

            return(value is null ? null : (IExifValue <TValueType>)value);
        }
Esempio n. 14
0
 public ExifNumberArray(ExifTag <Number[]> tag)
     : base(tag)
 {
 }