IptcPackage
TiffRootPackage.IptcPackage property
获取或设置 IPTC 元数据包。
public IptcRecordSet IptcPackage { get; set; }
适当的价值
IPTC 元数据包。
评论
了解更多
例子
此示例展示了如何从 TIFF 图像中提取基本的 IPTC 元数据属性。
using (Metadata metadata = new Metadata(Constants.TiffWithIptc))
{
var root = metadata.GetRootPackage<TiffRootPackage>();
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 TiffRootPackage
- 命名空间 GroupDocs.Metadata.Formats.Image
- 部件 GroupDocs.Metadata