XmpSchemes
Contenuti
[
Nascondere
]
XmpSchemes class
Fornisce l’accesso a schemi XMP noti.
public sealed class XmpSchemes
Proprietà
Nome | Descrizione |
---|---|
BasicJobTicket { get; set; } | Ottiene o imposta lo schema BasicJobTicket. |
CameraRaw { get; set; } | Ottiene o imposta lo schema di Camera Raw. |
DublinCore { get; set; } | Ottiene o imposta lo schema Dublin Core. |
PagedText { get; set; } | Ottiene o imposta lo schema PagedText. |
Pdf { get; set; } | Ottiene o imposta lo schema PDF. |
Photoshop { get; set; } | Ottiene o imposta lo schema di Photoshop. |
XmpBasic { get; set; } | Ottiene o imposta lo schema XmpBasic. |
XmpDynamicMedia { get; set; } | Ottiene o imposta lo schema XmpDynamicMedia. |
XmpMediaManagement { get; set; } | Ottiene o imposta lo schema XmpMediaManagement. |
XmpRightsManagement { get; set; } | Ottiene o imposta lo schema XmpRightsManagement. |
Esempi
Questo esempio mostra come estrarre i metadati XMP da un 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);
//...
}
//...
}
}
Guarda anche
- spazio dei nomi GroupDocs.Metadata.Standards.Xmp
- assemblea GroupDocs.Metadata