Class XmpProfile
Represents an XMP profile, providing access to the raw XML. See https://www.adobe.com/devnet/xmp.html for the full specification.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Xmp
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class XmpProfile : IDeepCloneable<XmpProfile>
Constructors
| Improve this Doc View SourceXmpProfile()
Initializes a new instance of the XmpProfile class.
Declaration
public XmpProfile()
XmpProfile(Byte[])
Initializes a new instance of the XmpProfile class.
Declaration
public XmpProfile(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | The UTF8 encoded byte array to read the XMP profile from. |
Methods
| Improve this Doc View SourceDeepClone()
Creates a new T
that is a deep copy of the current instance.
Declaration
public XmpProfile DeepClone()
Returns
Type | Description |
---|---|
XmpProfile | The |
GetDocument()
Gets the raw XML document containing the XMP profile.
Declaration
public XDocument GetDocument()
Returns
Type | Description |
---|---|
XDocument | The XDocument |
ToByteArray()
Convert the content of this XmpProfile into a byte array.
Declaration
public byte[] ToByteArray()
Returns
Type | Description |
---|---|
Byte[] | The byte[] |