Skip to main content

canvas_image

Function canvas_image 

Source
pub fn canvas_image(x: f32, y: f32, w: f32, h: f32, data: &[u8])
Expand description

Draw an image on the canvas from encoded image bytes (PNG, JPEG, GIF, WebP). The browser decodes the image and renders it at the given rectangle.