ImageRootPackageFileType Property
Gets the file type metadata package.

Namespace: GroupDocs.Metadata.Formats.Image
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public ImageTypePackage FileType { get; }

Property Value

Type: ImageTypePackage
The file type metadata package.
Examples
This code sample demonstrates how to extract common image properties such as width and height, MIME type, byte order, etc.
C#
using (Metadata metadata = new Metadata(Constants.InputPng))
{
    var root = metadata.GetRootPackage<ImageRootPackage>();

    Console.WriteLine(root.FileType.FileFormat);
    Console.WriteLine(root.FileType.ByteOrder);
    Console.WriteLine(root.FileType.MimeType);
    Console.WriteLine(root.FileType.Extension);
    Console.WriteLine(root.FileType.Width);
    Console.WriteLine(root.FileType.Height);
}
See Also