Class XmpProfile
- Namespace
- SixLabors.ImageSharp.Metadata.Profiles.Xmp
- Assembly
- SixLabors.ImageSharp.dll
Represents an XMP profile, providing access to the raw XML. See https://www.adobe.com/devnet/xmp.html for the full specification.
public sealed class XmpProfile : IDeepCloneable<XmpProfile>
- Inheritance
-
XmpProfile
- Implements
- Inherited Members
Constructors
XmpProfile()
Initializes a new instance of the XmpProfile class.
public XmpProfile()
XmpProfile(byte[]?)
Initializes a new instance of the XmpProfile class.
public XmpProfile(byte[]? data)
Parameters
data
byte[]The UTF8 encoded byte array to read the XMP profile from.
Methods
DeepClone()
public XmpProfile DeepClone()
Returns
GetDocument()
Gets the raw XML document containing the XMP profile.
public XDocument? GetDocument()
Returns
- XDocument
The System.Xml.Linq.XDocument
ToByteArray()
Convert the content of this XmpProfile into a byte array.
public byte[] ToByteArray()
Returns
- byte[]
The Byte[]