draw_on_image

Function draw_on_image 

Source
pub fn draw_on_image(
    base: &mut ImageData,
    diff: &ImageData,
    left: u32,
    top: u32,
) -> Result<()>
Available on crate feature image only.
Expand description

Draws an image on another image. The pixel data of diff will completely overwrite the pixel data of base.

  • base - The base image to draw on.
  • diff - The image to draw.
  • left - The horizontal offset to start drawing the image.
  • top - The vertical offset to start drawing the image.