[−][src]Function sdl2::gfx::imagefilter::normalize_linear
pub fn normalize_linear(
src1: CVec<u8>,
cmin: i32,
cmax: i32,
nmin: i32,
nmax: i32
) -> Result<CVec<u8>, String>
Filter using NormalizeLinear
: D = saturation255((Nmax - Nmin)/(Cmax - Cmin)*(S - Cmin) + Nmin).