pub fn draw_on_canvas(
img: ImageData,
canvas_width: u32,
canvas_height: u32,
offset_x: u32,
offset_y: u32,
) -> Result<ImageData>Available on crate feature
image only.Expand description
Draws an image on a canvas with specified offsets.
img- The image data to draw.canvas_width- The width of the canvas.canvas_height- The height of the canvas.offset_x- The horizontal offset to start drawing the image.offset_y- The vertical offset to start drawing the image.
Returns the canvas image data.