XmpParser Class |
Namespace: Atalasoft.Imaging.Metadata
The XmpParser type exposes the following members.
Name | Description | |
---|---|---|
BytesFromImage(Stream) | Returns a byte array containing XMP data from an image stream. | |
BytesFromImage(String) | Returns a byte array containing XMP data from an image file. | |
BytesFromImage(Stream, Int32) | Returns a byte array containing XMP data from an image stream specifying the frame index. | |
BytesFromImage(String, Int32) | Returns a byte array containing XMP data from an image file specifying the frame index. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnError |
Raises the [E:Error] event.
| |
ParseFromImage(Stream) | Returns an XmlDocument containing XMP data from an image file stream. | |
ParseFromImage(String) | Returns an XmlDocument containing XMP data from an image file. | |
ParseFromImage(Stream, Int32) | Returns an XmlDocument containing XMP data from an image file stream and zero based frame
index. | |
ParseFromImage(String, Int32) | Returns an XmlDocument containing XMP data from an image file and zero based frame index.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
CodecError |
Occurs when a codec error has been reported.
|
There are two important methods in this class. BytesFromImage(Stream, Int32) returns a byte array of the raw XMP data. It is used in the DotImage Annotations Toolkit, to load XMP annotations data. ParseFromImage(String, Int32) returns an XmlDocument that can be easily parsed using features in the .NET XML namespace.
For more information on XMP including the specification, visit http://www.adobe.com/products/xmp/.
XmpParser xmpParser = new XmpParser(); XmlDocument doc = xmpParser.Parse("document.tif", 1);
Dim xmpParser As XmpParser = New XmpParser() Dim doc As XmlDocument = xmpParser.Parse("document.tif", 1)