pub fn draw_on_img_with_opacity(
base: &mut ImageData,
diff: &ImageData,
left: u32,
top: u32,
opacity: u8,
) -> Result<()>
Available on crate feature
image
only.Expand description
Draws an image on another image with specified opacity.
base
- The base image to draw on.diff
- The image to draw with opacity.left
- The horizontal offset to start drawing the image.top
- The vertical offset to start drawing the image.opacity
- The opacity level to apply to the drawn image (0-255