Skip to main content

Function: convertDisplayToLinear()

convertDisplayToLinear(data, width, height, from, linearColorSpace): HdrifyImage

Convert display-referred Float32Array to linear HdrifyImage. Primaries are determined by the display space.

Parameters​

data​

Float32Array

width​

number

height​

number

from​

DisplayColorSpace

linearColorSpace​

LinearColorSpace

Returns​

HdrifyImage