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
| Edit this page 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
| Edit this page View SourceDeepClone()
Creates a new XmpProfile that is a deep copy of the current instance.
Declaration
public XmpProfile DeepClone()
Returns
Type | Description |
---|---|
XmpProfile | The XmpProfile. |
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[] |