XmpPackage
AviRootPackage.XmpPackage property
XMP meta veri paketini alır veya ayarlar.
public XmpPacketWrapper XmpPackage { get; set; }
Mülk değeri
XMP meta veri paketi.
Notlar
Daha fazla bilgi edin
Örnekler
Bu örnek, XMP meta verilerinin bir dosyadan nasıl çıkarılacağını gösterir.
<example>
This example demonstrates how to extract XMP metadata from a file.
<code lang="C#"><![CDATA[
using (Metadata metadata = new Metadata(Constants.AviWithXmp))
{
var root = metadata.GetRootPackage<AviRootPackage>();
if (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);
// ...
}
// ...
}
}
Ayrıca bakınız
- class XmpPacketWrapper
- class AviRootPackage
- ad alanı GroupDocs.Metadata.Formats.Video
- toplantı GroupDocs.Metadata