pub fn apply_opacity(img: &mut ImageData, opacity: u8) -> Result<()>
image
Applies opacity to an image.
Only supports RGBA or BGRA images with 8-bit depth.