XmpSchemes
isi
[
bersembunyi
]
XmpSchemes class
Memberikan akses ke skema XMP yang dikenal.
public sealed class XmpSchemes
Properti
Nama | Keterangan |
---|---|
BasicJobTicket { get; set; } | Mendapat atau menyetel skema BasicJobTicket. |
CameraRaw { get; set; } | Mendapatkan atau menyetel skema Camera Raw. |
DublinCore { get; set; } | Mendapatkan atau menyetel skema Dublin Core. |
PagedText { get; set; } | Mendapat atau menyetel skema PagedText. |
Pdf { get; set; } | Mendapat atau menyetel skema PDF. |
Photoshop { get; set; } | Mendapatkan atau menyetel skema Photoshop. |
XmpBasic { get; set; } | Mendapat atau menyetel skema XmpBasic. |
XmpDynamicMedia { get; set; } | Mendapatkan atau menyetel skema XmpDynamicMedia. |
XmpMediaManagement { get; set; } | Mendapat atau menyetel skema XmpMediaManagement. |
XmpRightsManagement { get; set; } | Mendapat atau menyetel skema XmpRightsManagement. |
Contoh
Contoh ini menunjukkan cara mengekstrak metadata XMP dari 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);
// ...
}
// ...
}
}
Lihat juga
- ruang nama GroupDocs.Metadata.Standards.Xmp
- perakitan GroupDocs.Metadata