DecodeImage(ReadOnlyMemory, ImageFilterContext) Method

Definition

Decodes the codestream into an image.

public DecodedImage? DecodeImage(ReadOnlyMemory<byte> encoded, ImageFilterContext context)

Parameters

encoded
ReadOnlyMemory<Byte>

The data to decode.

context
ImageFilterContext

The image's dictionary values, limits and the filter context; create the image with TryCreateImage(Int32, Int32, Int32, Int32, out DecodedImageBuilder?).

Returns

DecodedImage
The image; null when nothing could be decoded (after reporting why through the context).

Remarks

ISO 32000-2 §7.4.6, Table 11, and §8.9.3; ITU-T T.4 §4; ITU-T T.6 §2.