Table of Contents

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.

XmpProfile(XDocument)

Initializes a new instance of the XmpProfile class from an XML document. The document is serialized as UTF-8 without BOM.

public XmpProfile(XDocument document)

Parameters

document XDocument

The XMP XML document.

Methods

DeepClone()

Creates a new XmpProfile that is a deep copy of the current instance.

public XmpProfile DeepClone()

Returns

XmpProfile

The XmpProfile.

ToByteArray()

Convert the content of this XmpProfile into a byte array.

public byte[] ToByteArray()

Returns

byte[]

The Byte[]

ToXDocument()

Convert the content of this XmpProfile into an XDocument.

public XDocument? ToXDocument()

Returns

XDocument

The XDocument instance, or null if no XMP data is present.