本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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 + ")";
}
示例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;
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例10: ExifSIntArray
public ExifSIntArray(ExifTag tag, int[] value)
: base(tag)
{
mValue = value;
}
示例11: ExifSRational
public ExifSRational(ExifTag tag, int numerator, int denominator)
: base(tag)
{
mValue = new MathEx.Fraction32(numerator, denominator);
}
示例12: ExifUndefined
public ExifUndefined(ExifTag tag, byte[] value)
: base(tag)
{
mValue = value;
}
示例13: ExifSInt
public ExifSInt(ExifTag tag, int value)
: base(tag)
{
mValue = value;
}
示例14: exif_content_get_entry
internal static extern IntPtr exif_content_get_entry (_ExifContent *ptr, ExifTag tag);
示例15: ExifProperty
public ExifProperty(ExifTag tag)
{
mTag = tag;
mIFD = ExifTagFactory.GetTagIFD(tag);
}