Skip to main content

apply_separable

Function apply_separable 

Source
pub fn apply_separable(mode: BlendMode, src: &[u8], dst: &[u8], out: &mut [u8])
Expand description

Apply a separable blend mode to each corresponding byte pair from src and dst.

For CMYK/DeviceN modes the caller must invert before and after (subtractive complement). src.len(), dst.len(), and out.len() must all be equal.

§Panics

Panics if mode is a non-separable variant (Hue, Saturation, Color, Luminosity). Use apply_nonseparable_rgb for those.