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.7 and Table 12; ITU-T T.88 §6.2, §7, §8, Annexes D.3 and E.