예제 #1
0
 public static PropertyItem CreateByte(ExifTagID id, byte value)
 {
     return(CreateByte((short)id, value));
 }
예제 #2
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreateShort(ExifTagID id, ushort value)
 {
     return CreateShort((short)id, value);
 }
예제 #3
0
 public static PropertyItem CreateSRational(ExifTagID id, int numerator, int denominator)
 {
     return(CreateSRational((short)id, numerator, denominator));
 }
예제 #4
0
 public static PropertyItem CreateAscii(ExifTagID id, string value)
 {
     return(CreateAscii((short)id, value));
 }
예제 #5
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreateAscii(ExifTagID id, string value)
 {
     return CreateAscii((short)id, value);
 }
예제 #6
0
 public PropertyItem[] GetExifValues(ExifTagID id)
 {
     return(GetExifValues((short)id));
 }
예제 #7
0
        private void CopyStringTagTo(BitmapMetadata dst, string dstPropertyName, Metadata src, ExifTagID srcTagID)
        {
            PropertyItem[] pis = src.GetExifValues(srcTagID);

            if (pis.Length > 0)
            {
                PropertyInfo pi      = dst.GetType().GetProperty(dstPropertyName);
                string       piValue = Exif.DecodeAsciiValue(pis[0]);

                try
                {
                    pi.SetValue(dst, piValue, null);
                }

                catch (Exception)
                {
                    // *shrug*
                }
            }
        }
예제 #8
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreateSLong(ExifTagID id, int value)
 {
     return CreateSLong((short)id, value);
 }
예제 #9
0
 public void ReplaceExifValues(ExifTagID id, PropertyItem[] items)
 {
     ReplaceExifValues((short)id, items);
 }
예제 #10
0
 public void RemoveExifValues(ExifTagID id)
 {
     RemoveExifValues((short)id);
 }
예제 #11
0
 public PropertyItem[] GetExifValues(ExifTagID id)
 {
     return GetExifValues((short)id);
 }
예제 #12
0
 public void RemoveExifValues(ExifTagID id)
 {
     RemoveExifValues((short)id);
 }
예제 #13
0
 public void ReplaceExifValues(ExifTagID id, PropertyItem[] items)
 {
     ReplaceExifValues((short)id, items);
 }
예제 #14
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreatePropertyItem(ExifTagID id, ExifTagType type, byte[] data)
 {
     return CreatePropertyItem((short)id, type, data);
 }
예제 #15
0
 public static PropertyItem CreateShort(ExifTagID id, ushort value)
 {
     return(CreateShort((short)id, value));
 }
예제 #16
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreateUndefined(ExifTagID id, byte value)
 {
     return CreateUndefined((short)id, value);
 }
예제 #17
0
 public static PropertyItem CreatePropertyItem(ExifTagID id, ExifTagType type, byte[] data)
 {
     return(CreatePropertyItem((short)id, type, data));
 }
예제 #18
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreateSRational(ExifTagID id, int numerator, int denominator)
 {
     return CreateSRational((short)id, numerator, denominator);
 }
예제 #19
0
 public static PropertyItem CreateSLong(ExifTagID id, int value)
 {
     return(CreateSLong((short)id, value));
 }
예제 #20
0
파일: Exif.cs 프로젝트: metadeta96/openpdn
 public static PropertyItem CreateByte(ExifTagID id, byte value)
 {
     return CreateByte((short)id, value);
 }
예제 #21
0
        private void CopyStringTagTo(BitmapMetadata dst, string dstPropertyName, Metadata src, ExifTagID srcTagID)
        {
            PropertyItem[] pis = src.GetExifValues(srcTagID);

            if (pis.Length > 0)
            {
                PropertyInfo pi = dst.GetType().GetProperty(dstPropertyName);
                string piValue = Exif.DecodeAsciiValue(pis[0]);

                try
                {
                    pi.SetValue(dst, piValue, null);
                }

                catch (Exception)
                {
                    // *shrug*
                }
            }
        }