DEXTUpload.NET
Class Metadata
- The minimum supported version
- 5.0.0.0
- The minimum support environment
- .NET Framework 4.0
- Explanation
-
The "Metadata" is a class that has a metadata extracted from an image having a format that supports metadata.
The "Metadata" object can be obtained using the "GetMetadata" method of the "DEXTUpload.NET.ImageProc" class.
The metadata is supported from TIFF, JPEG, PNG, EXIF image format. Other formats are not supported.
var source = new FileInfo("image.jpg"); var metadata = ImageProc.GetMetadata(source); foreach (var id in metadata.TagIds) { Console.WriteLine(string.Format("{0}={1}", id, metadata.GetTagString(id))); }
- Type
-
public class Metadata
- Constructors
-
Metadata
-
Does initialization when creating an instance of the "Metadata" class.
-
Type
public Metadata() public Metadata(int count)
-
Parameters
Name Type Explanation count System.Int32 The initial capacity of the list.
-
- Properties
-
TagIds
-
Gets a "System.Collection.Generic.List<ImageMetaDataPropertyTagIds>" object of the tag list.
The "DEXTUpload.NET.ImageMetaDataPropertyTagIds" enumeration represents property tags that can identify the metadata extracted from the image file.
-
Type
public List<ImageMetaDataPropertyTagIds> TagIds { get; }
-
- Methods
-
GetTagValue
-
Returns the value of the property item, as an array of bytes, corresponding to the given "DEXTUpload.NET.ImageMetaDataPropertyTagIds".
A value of the property item has varied type. Therefore, in order to obtain the required value, there may be a need to analyze the structure of the byte array directly using the "GetTagValue" method.
-
Type
public byte[] GetTagValue(ImageMetaDataPropertyTagIds id)
-
Parameters
Name Type Explanation id DEXTUpload.NET.ImageMetaDataPropertyTagIds The id of the property tag. -
Return
An array of bytes corresponding to the given DEXTUpload.NET.ImageMetaDataPropertyTagIds".
GetTagString
-
Returns the value of the property item corresponding to the given "DEXTUpload.NET.ImageMetaDataPropertyTagIds" as a string converted.
The value of the property item has obtained by converting the ASCII format suitable most of properties. However, in the case of the thumbnail or not english data, it can be expressed with a character that can not know the meaning.
-
Type
public string GetTagString(ImageMetaDataPropertyTagIds id)
-
Parameters
Name Type Explanation id DEXTUpload.NET.ImageMetaDataPropertyTagIds The id of the property tag. -
Return
A string corresponding to the given DEXTUpload.NET.ImageMetaDataPropertyTagIds".
Clear
-
Removes all property items.
-
Type
public void Clear()
-