ExifPackage
Jpeg2000RootPackage.ExifPackage property
Mendapat atau menyetel paket metadata EXIF.
public ExifPackage ExifPackage { get; set; }
Nilai properti
Paket metadata EXIF.
Perkataan
Belajarlah lagi
Contoh
Contoh kode ini menunjukkan cara mengekstrak properti metadata EXIF dasar.
using (Metadata metadata = new Metadata(Constants.Jpeg2000WithExif))
{
var root = metadata.GetRootPackage<Jpeg2000RootPackage>();
if (root.ExifPackage != null)
{
Console.WriteLine(root.ExifPackage.Artist);
Console.WriteLine(root.ExifPackage.Copyright);
Console.WriteLine(root.ExifPackage.ImageDescription);
Console.WriteLine(root.ExifPackage.Make);
Console.WriteLine(root.ExifPackage.Model);
Console.WriteLine(root.ExifPackage.Software);
Console.WriteLine(root.ExifPackage.ImageWidth);
Console.WriteLine(root.ExifPackage.ImageLength);
// ...
Console.WriteLine(root.ExifPackage.ExifIfdPackage.BodySerialNumber);
Console.WriteLine(root.ExifPackage.ExifIfdPackage.CameraOwnerName);
Console.WriteLine(root.ExifPackage.ExifIfdPackage.UserComment);
// ...
Console.WriteLine(root.ExifPackage.GpsPackage.Altitude);
Console.WriteLine(root.ExifPackage.GpsPackage.LatitudeRef);
Console.WriteLine(root.ExifPackage.GpsPackage.LongitudeRef);
// ...
}
}
Lihat juga
- class ExifPackage
- class Jpeg2000RootPackage
- ruang nama GroupDocs.Metadata.Formats.Image
- perakitan GroupDocs.Metadata