IptcPackage
PsdRootPackage.IptcPackage property
获取或设置 IPTC 元数据包。
public IptcRecordSet IptcPackage { get; set; }
适当的价值
IPTC 元数据包。
评论
了解更多
例子
此示例显示如何读取基本 IPTC 元数据属性。
using (Metadata metadata = new Metadata(Constants.PsdWithIptc))
{
var root = metadata.GetRootPackage<PsdRootPackage>();
if (root.IptcPackage != null)
{
if (root.IptcPackage.EnvelopeRecord != null)
{
Console.WriteLine(root.IptcPackage.EnvelopeRecord.DateSent);
Console.WriteLine(root.IptcPackage.EnvelopeRecord.Destination);
Console.WriteLine(root.IptcPackage.EnvelopeRecord.FileFormat);
Console.WriteLine(root.IptcPackage.EnvelopeRecord.FileFormatVersion);
// ...
}
if (root.IptcPackage.ApplicationRecord != null)
{
Console.WriteLine(root.IptcPackage.ApplicationRecord.Headline);
Console.WriteLine(root.IptcPackage.ApplicationRecord.ByLine);
Console.WriteLine(root.IptcPackage.ApplicationRecord.ByLineTitle);
Console.WriteLine(root.IptcPackage.ApplicationRecord.CaptionAbstract);
Console.WriteLine(root.IptcPackage.ApplicationRecord.City);
Console.WriteLine(root.IptcPackage.ApplicationRecord.DateCreated);
Console.WriteLine(root.IptcPackage.ApplicationRecord.ReleaseDate);
// ...
}
}
}
也可以看看
- class IptcRecordSet
- class PsdRootPackage
- 命名空间 GroupDocs.Metadata.Formats.Image
- 部件 GroupDocs.Metadata