Function apply_opacity

Source
pub fn apply_opacity(img: &mut ImageData, opacity: u8) -> Result<()>
Available on crate feature image only.
Expand description

Applies opacity to an image.

Only supports RGBA or BGRA images with 8-bit depth.