XmpSchemes
Contents
[
Hide
]
XmpSchemes class
Provides access to known XMP schemes.
public sealed class XmpSchemes
Properties
Name | Description |
---|---|
BasicJobTicket { get; set; } | Gets or sets the BasicJobTicket scheme. |
CameraRaw { get; set; } | Gets or sets the Camera Raw scheme. |
DublinCore { get; set; } | Gets or sets the Dublin Core scheme. |
PagedText { get; set; } | Gets or sets the PagedText scheme. |
Pdf { get; set; } | Gets or sets the PDF scheme. |
Photoshop { get; set; } | Gets or sets the Photoshop scheme. |
XmpBasic { get; set; } | Gets or sets the XmpBasic scheme. |
XmpDynamicMedia { get; set; } | Gets or sets the XmpDynamicMedia scheme. |
XmpMediaManagement { get; set; } | Gets or sets the XmpMediaManagement schema. |
XmpRightsManagement { get; set; } | Gets or sets the XmpRightsManagement schema. |
Examples
This example demonstrates how to extract XMP metadata from a file.
using (Metadata metadata = new Metadata(Constants.PngWithXmp))
{
IXmp root = metadata.GetRootPackage() as IXmp;
if (root != null && root.XmpPackage != null)
{
if (root.XmpPackage.Schemes.XmpBasic != null)
{
Console.WriteLine(root.XmpPackage.Schemes.XmpBasic.CreatorTool);
Console.WriteLine(root.XmpPackage.Schemes.XmpBasic.CreateDate);
Console.WriteLine(root.XmpPackage.Schemes.XmpBasic.ModifyDate);
Console.WriteLine(root.XmpPackage.Schemes.XmpBasic.Label);
Console.WriteLine(root.XmpPackage.Schemes.XmpBasic.Nickname);
// ...
}
if (root.XmpPackage.Schemes.DublinCore != null)
{
Console.WriteLine(root.XmpPackage.Schemes.DublinCore.Format);
Console.WriteLine(root.XmpPackage.Schemes.DublinCore.Coverage);
Console.WriteLine(root.XmpPackage.Schemes.DublinCore.Identifier);
Console.WriteLine(root.XmpPackage.Schemes.DublinCore.Source);
// ...
}
if (root.XmpPackage.Schemes.Photoshop != null)
{
Console.WriteLine(root.XmpPackage.Schemes.Photoshop.ColorMode);
Console.WriteLine(root.XmpPackage.Schemes.Photoshop.IccProfile);
Console.WriteLine(root.XmpPackage.Schemes.Photoshop.Country);
Console.WriteLine(root.XmpPackage.Schemes.Photoshop.City);
Console.WriteLine(root.XmpPackage.Schemes.Photoshop.DateCreated);
// ...
}
// ...
}
}
See Also
- namespace GroupDocs.Metadata.Standards.Xmp
- assembly GroupDocs.Metadata