decodeExr function

Image? decodeExr(
  1. List<int> bytes, {
  2. double exposure = 1.0,
})

Decode an OpenEXR formatted image, tone-mapped using the given exposure to a low-dynamic-range Image.

Implementation

Image? decodeExr(List<int> bytes, {double exposure = 1.0}) =>
    ExrDecoder(exposure: exposure).decodeImage(bytes);