IptcPackage
TiffRootPackage.IptcPackage property
Mendapat atau menyetel paket metadata IPTC.
public IptcRecordSet IptcPackage { get; set; }
Nilai properti
Paket metadata IPTC.
Perkataan
Belajarlah lagi
Contoh
Contoh ini menunjukkan cara mengekstrak properti metadata IPTC dasar dari gambar TIFF.
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);
// ...
}
}
}
Lihat juga
- class IptcRecordSet
- class TiffRootPackage
- ruang nama GroupDocs.Metadata.Formats.Image
- perakitan GroupDocs.Metadata