from_linear_rgb

Function from_linear_rgb 

Source
fn from_linear_rgb(data: &mut [RGBA8])
Expand description

Converts input pixel from LinearRGB into sRGB.

Provided pixels should have an unpremultiplied alpha.

RGB channels order of the input image doesn’t matter, but alpha channel must be the last one.