/// <summary> /// Decode image file header (Only read file header). /// </summary> /// <param name="reader">File stream.</param> /// <returns>ImageDescription.</returns> public static ImageDescription DecodeHeader(BinaryReader reader) { IDecoder decoder = FindDecoder(reader); decoder.DecodeHeader(reader, out ImageDescription description); return(description); }