GifRootPackageFileType Property
Gets the file type metadata package.

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

Property Value

Type: GifImageTypePackage
The file type metadata package.
Examples
This code snippet shows how to detect the version of a loaded GIF image and extract some additional file format information.
C#
using (Metadata metadata = new Metadata(Constants.InputGif))
{
    var root = metadata.GetRootPackage<GifRootPackage>();

    Console.WriteLine(root.FileType.FileFormat);
    Console.WriteLine(root.FileType.Version);
    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