Reads the codestream's header without decoding the samples.
public bool TryReadHeader(ReadOnlySpan<byte> encoded, ImageFilterContext context, scoped out ImageHeader header)
The data the filter would decode.
The image's dictionary values, limits and the filter context.
The image's size and components as the codestream declares them.
false when the header cannot be read; DecodeImage(ReadOnlyMemory<Byte>, ImageFilterContext) is then not called.ISO 32000-2 §7.4.6 and §8.9.5: the image is the dictionary's Width (else Columns) by its Height (else Rows, 0 when unknown), one 1-bit component.