RegionDecoderImageSource

constructor(opener: () -> InputStream)

Creates a source reading the encoded image from a stream.

Parameters

opener

provides a new stream positioned at the start of the encoded image on every call.

Throws

if the image cannot be read or its format is not supported by BitmapRegionDecoder.