当前位置: 首页>>代码示例>>C#>>正文


C# ExifTag类代码示例

本文整理汇总了C#中ExifTag的典型用法代码示例。如果您正苦于以下问题:C# ExifTag类的具体用法?C# ExifTag怎么用?C# ExifTag使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ExifTag类属于命名空间,在下文中一共展示了ExifTag类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PNGText

 public PNGText(ExifTag tag, string keyword, string value, bool compressed)
     : base(tag)
 {
     Keyword = keyword;
     mValue = value;
     Compressed = compressed;
 }
开发者ID:cschadewitz,项目名称:exiflibrary,代码行数:7,代码来源:PNGProperty.cs

示例2: AddTagToList

 private void AddTagToList(ExifTag tag)
 {
     ListViewItem item = listExif.Items.Add(tag.Id.ToString());
     item.SubItems.Add(tag.FieldName);
     item.SubItems.Add(tag.Description);
     item.SubItems.Add(tag.Value);
 }
开发者ID:priceLiu,项目名称:exif,代码行数:7,代码来源:DemoForm.cs

示例3: GetTagName

 /// <summary>
 /// Returns the string representation for the given exif tag.
 /// </summary>
 public static string GetTagName(ExifTag tag)
 {
     string name = Enum.GetName(typeof(ExifTag), tag);
     if (name == null)
         return "Unknown";
     else
         return name;
 }
开发者ID:lmmsoft,项目名称:PhotoGPS,代码行数:11,代码来源:ExifTagFactory.cs

示例4: GetTagLongName

 /// <summary>
 /// Returns the string representation for the given exif tag including 
 /// IFD section and tag id.
 /// </summary>
 public static string GetTagLongName(ExifTag tag)
 {
     string ifdname = Enum.GetName(typeof(IFD), GetTagIFD(tag));
     string name = Enum.GetName(typeof(ExifTag), tag);
     if (name == null)
         name = "Unknown";
     string tagidname = GetTagID(tag).ToString();
     return ifdname + ": " + name + " (" + tagidname + ")";
 }
开发者ID:lmmsoft,项目名称:PhotoGPS,代码行数:13,代码来源:ExifTagFactory.cs

示例5: PNGInternationalText

 public PNGInternationalText(ExifTag tag, string keyword, string value, bool compressed, string language, string translatedKeyword)
     : base(tag)
 {
     Keyword = keyword;
     mValue = value;
     Compressed = compressed;
     Language = language;
     TranslatedKeyword = translatedKeyword;
 }
开发者ID:cschadewitz,项目名称:exiflibrary,代码行数:9,代码来源:PNGProperty.cs

示例6: MakeExifNode

	bool MakeExifNode (TreeIter parent, TreeIter iter, ExifData ed, ExifTag tag)
	{
		string val = ed.Lookup (tag);
		if (val == null || val == "")
			return false;

		MakeNode (parent, out iter, ExifUtil.GetTagTitle (tag) + ":", ed.Lookup (tag));
		return true;
	}
开发者ID:emtees,项目名称:old-code,代码行数:9,代码来源:ImageInfoTreeStore.cs

示例7:

 /// <summary>
 /// Gets or sets the Exif property with the given key.
 /// </summary>
 /// <param name="key">The Exif tag associated with the Exif property.</param>
 /// <returns></returns>
 public ExifProperty this[ExifTag key]
 {
     get
     {
         return Properties[key];
     }
     set
     {
         Properties[key] = value;
     }
 }
开发者ID:bulutcy,项目名称:CyAutoGeoTag,代码行数:16,代码来源:ExifFile.cs

示例8: GetDescription

    public static string GetDescription(ExifTag tag, object value)
    {
      ExifTagDescriptionAttribute[] attributes = TypeHelper.GetCustomAttributes<ExifTagDescriptionAttribute>(tag);

      if (attributes == null || attributes.Length == 0)
        return null;

      foreach (ExifTagDescriptionAttribute attribute in attributes)
      {
        if (Equals(attribute._value, value))
          return attribute._description;
      }

      return null;
    }
开发者ID:dlemstra,项目名称:Magick.NET,代码行数:15,代码来源:ExifTagDescriptionAttribute.cs

示例9: GetExifData

 public ExifTag GetExifData(string filename)
 {
   Metadata fileMetadata = GetExifMetadata(filename);
   ExifTag newTags = new ExifTag();
   newTags.CameraModel = fileMetadata.CameraModel.DisplayValue;
   newTags.EquipmentMake = fileMetadata.EquipmentMake.DisplayValue;
   newTags.Date = fileMetadata.DatePictureTaken.DisplayValue;
   newTags.ExposureCompensation = fileMetadata.ExposureCompensation.DisplayValue;
   newTags.ExposureTime = fileMetadata.ExposureTime.DisplayValue;
   newTags.Flash = fileMetadata.Flash.DisplayValue;
   newTags.Fstop = fileMetadata.Fstop.DisplayValue;
   newTags.ImgDimensions = fileMetadata.ImageDimensions.DisplayValue;
   newTags.MeteringMod = fileMetadata.MeteringMode.DisplayValue;
   newTags.Resolutions = fileMetadata.Resolution.DisplayValue;
   newTags.ShutterSpeed = fileMetadata.ShutterSpeed.DisplayValue;
   newTags.ViewComment = fileMetadata.ViewerComments.DisplayValue;
   return newTags;
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:18,代码来源:ExifReader.cs

示例10: ExifSIntArray

 public ExifSIntArray(ExifTag tag, int[] value)
     : base(tag)
 {
     mValue = value;
 }
开发者ID:noahzaozao,项目名称:UnityAdmobAppEventDemo,代码行数:5,代码来源:ExifProperty.cs

示例11: ExifSRational

 public ExifSRational(ExifTag tag, int numerator, int denominator)
     : base(tag)
 {
     mValue = new MathEx.Fraction32(numerator, denominator);
 }
开发者ID:noahzaozao,项目名称:UnityAdmobAppEventDemo,代码行数:5,代码来源:ExifProperty.cs

示例12: ExifUndefined

 public ExifUndefined(ExifTag tag, byte[] value)
     : base(tag)
 {
     mValue = value;
 }
开发者ID:noahzaozao,项目名称:UnityAdmobAppEventDemo,代码行数:5,代码来源:ExifProperty.cs

示例13: ExifSInt

 public ExifSInt(ExifTag tag, int value)
     : base(tag)
 {
     mValue = value;
 }
开发者ID:noahzaozao,项目名称:UnityAdmobAppEventDemo,代码行数:5,代码来源:ExifProperty.cs

示例14: exif_content_get_entry

	internal static extern IntPtr exif_content_get_entry (_ExifContent *ptr, ExifTag tag);
开发者ID:emtees,项目名称:old-code,代码行数:1,代码来源:libexif-wrapper.cs

示例15: ExifProperty

 public ExifProperty(ExifTag tag)
 {
     mTag = tag;
     mIFD = ExifTagFactory.GetTagIFD(tag);
 }
开发者ID:noahzaozao,项目名称:UnityAdmobAppEventDemo,代码行数:5,代码来源:ExifProperty.cs


注:本文中的ExifTag类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。